{{-- --}} {{-- --}} {{-- --}} @if(in_array('sales-edit', $authRolePermissions)) @endif @if(in_array('sales-delete', $authRolePermissions)) @endif @php $i=1;@endphp @if(count($data)>0) @foreach($data as $key=> $list) @php $Receive = TransactionCalculationReceiveAmount($list->id,'SALES'); @endphp {{-- --}} {{----}} {{----}} @if(in_array('sales-edit', $authRolePermissions)) @endif @if(auth()->user()->can('sales-delete')) @endif @php $i++; @endphp @endforeach @else @endif
Sl No Invoice No. Customer Name Doctor Name Bill Amount BillReportPrintBalanceStatusEditDelete
{{$data->firstItem() + $key}} {{$list->voucher_type_invoice_no}}
{{ formatedDateTime($list->invoice_date) }}
{{ $list->getPatient->account_title->name ?? ''}} {{ isset($list->getPatient->name) && $list->getPatient->name!='' ? strtoupper($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
{{ $list->getDoctor->account_title->name ?? ''}} {{ $list->getDoctor->name ?? ''}} @if(!isset($list->getDoctor->account_title->name) && !isset($list->getDoctor->name)) {!! 'Self' !!} @endif Total: {{ convertDecimelPoint($Receive['totalBilling']) ?? ''}} @if($Receive['dueAmount']>0)
Due: {{ convertDecimelPoint($Receive['dueAmount']) ?? ''}} @endif @if($Receive['receivedAmount']>0)
Received: {{ convertDecimelPoint($Receive['receivedAmount']) ?? ''}} @endif
{!! $Receive['dueAmount'] > 0 ? 'Collect' : '' !!} {{$list->enquiry_quality_name}} {!! isset($list->getSaleInvoiceDetail) && isset($list->getSaleInvoiceDetail->getSaleInvoiceSubDetails) && isset($list->getSaleInvoiceDetail->getSaleInvoiceSubDetails->status) && $list->getSaleInvoiceDetail->getSaleInvoiceSubDetails->status == 1 ? 'Ready' : 'Pending' !!}
No Data Found