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

Payments ({{number_format($totalAmount)}})

@foreach($allPayments as $payment) @endforeach
# DATE NUMBER AMOUNT Payment Method VENDOR Account Head Approval Status Action
{{$count++}} {{date('d-m-Y', strtotime($payment->date)) }} BILL-000{{$payment->bill->id}} {{number_format($payment->amount)}} @if($payment->payment_method == \App\ExpensePayment::CASH) CASH @else BANK
@if($payment->is_reconciled) @else @endif @endif
@if($payment->bill->vendor){{$payment->bill->vendor->name}}@endif @if($payment->bill->category){{$payment->bill->category->name}}@endif @if($payment->approval_status) Approved
  File @else Pending @endif
@if(!$payment->approval_status) @permission('edit-expense')     @endpermission @endif @permission('edit-expense') @endpermission     @permission('delete-expense') @endpermission
@stop @section('js') @stop