@extends('layouts.app') @section('title') Bills @stop @section('breadcrumb') @stop @section('css') @endsection @section('content')
Search Bills
@if($errors->has('date_range')) {{ $errors->first('date_range') }} @endif
@permission('create-expense')   Add New @endpermission

Bills ({{number_format($amount)}})

@foreach($allExpenses as $expense) @if($expense->status == 1) @elseif($expense->status == 2) @else @endif @endforeach
# Number Type Account Head Vendor Amount Bill Date Due Date Status Action
{{$count++}} BILL-000{{$expense->id}} {{$expense->expense_type == \App\Expense::CONSTRUCTION ? 'Construction' : 'Service'}} @if($expense->category){{$expense->category->number}} - {{$expense->category->name}}@endif @if($expense->vendor){{$expense->vendor->name}}@endif {{number_format($expense->amount)}} {{date('d-m-Y', strtotime($expense->billed_at)) }} {{date('d-m-Y', strtotime($expense->due_at)) }}PAIDPARTIALYUNPAID @permission('view-expense') @endpermission @permission('edit-expense') @endpermission @permission('delete-expense') @endpermission
@stop @section('js') @stop