{{----}} @if(in_array('pathology-lab-billing-edit', $authRolePermissions)) @endif @if(auth()->user()->can('pathology-lab-billing-delete')) @endif @php $i=1;@endphp @if(count($data)>0) @foreach($data as $key=> $list) @php $Receive = TransactionCalculationReceiveAmount($list->id,'PATHOLOGY'); @endphp {{----}} {{-- --}} @if(in_array('pathology-lab-billing-edit', $authRolePermissions)) @endif @if(auth()->user()->can('pathology-lab-billing-delete')) @endif @php $i++; @endphp @endforeach @else @endif
Sl No Invoice No. Patient Details Ref.By/Referral Bill Amount BillReportReport Balance EditDelete
{{$data->firstItem() + $key}} {{$list->voucher_type_invoice_no??''}}
{{ formatedDate($list->invoice_date) }}
{{ formatedTime($list->invoice_date) }}
{!! $list->getPatient->account_title->name??''!!} {{ $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) . ' years' : '' }}
{!! isset($list->task_status) && !empty($list->task_status) ? 'Report '. $list->task_status .'' : '' !!}
@php $doctor_name = isset($list->getDoctor) && isset($list->getDoctor->name) && $list->getDoctor->name != '' ? $list->getDoctor->name : 'Self'; $doctor_title = isset($list->getDoctor) && isset($list->getDoctor->account_title) && isset($list->getDoctor->account_title->name) != '' ? $list->getDoctor->account_title->name : ''; @endphp {{ $doctor_title.' '.$doctor_name }}
By: {!! $list->getCreatedBy->prepared_by??'' !!}
Total: {{ convertDecimelPoint($Receive['totalBilling']) ?? ''}} @if($Receive['dueAmount']>0)
Due: {{ convertDecimelPoint($Receive['dueAmount']) ?? ''}} @endif @if($Receive['receivedAmount']>0)
Received: {{ convertDecimelPoint($Receive['receivedAmount']) ?? ''}} @endif
@if($list->sub_details_count > 0) @endif {!! $Receive['dueAmount'] > 0 ? 'Collect' : '' !!} {!! $list->due_amount > 0 ? '' : 'Big BarCode' !!} {{$list->enquiry_quality_name ?? ''}}
No Data Found