@if(in_array('purchase-edit', $authRolePermissions)) @endif @if(in_array('purchase-delete', $authRolePermissions)) @endif @php $i=1;@endphp @if(count($data)>0) @foreach($data as $key=> $list) @php $Payment = PurchaseTransactionCalculationReceiveAmount($list->id,'PURCHASE'); @endphp @if(in_array('purchase-edit', $authRolePermissions)) @endif @if(in_array('purchase-delete', $authRolePermissions)) @endif @php $i++; @endphp @endforeach @else @endif
Sl No Invoice No. Supplier Invoice No. Supplier Name Bill Amount Bill BalanceEditDelete
{{$data->firstItem() + $key}} {{$list->main_invoice_no??''}} {{$list->supplier_invoice_number??''}}
{{ formatedDateTime($list->invoice_date) }}
{{$list->getPatient->name ?? ''}} {{-- {{$list->getPatient->account_contact->gender->name ?? ''}}{{ isset($list->getPatient->account_contact->date_of_birth) && isset($list->getPatient->account_contact->gender) ? ', ' : '' }} {{ isset($list->getPatient->account_contact->date_of_birth) ? age($list->getPatient->account_contact->date_of_birth) . ' yrs' : '' }} --}}
@if(isset($list->getCreatedBy->prepared_by))
By: {!! $list->getCreatedBy->prepared_by??'' !!}
@endif
Total: {{ convertDecimelPoint($Payment['totalBilling']) ?? ''}} @if($Payment['dueAmount']>0)
Due: {{ convertDecimelPoint($Payment['dueAmount']) ?? ''}} @endif @if($Payment['receivedAmount']>0)
Payment: {{ convertDecimelPoint($Payment['receivedAmount']) ?? ''}} @endif
{!! $Payment['dueAmount'] > 0 ? 'Payment' : '' !!}
No Data Found