{{-- --}} @if(auth()->user()->can('pathology-lab-billing-list')) @endif {{-- @if(in_array('pathology-lab-billing-create', $authRolePermissions)) @endif --}} {{-- --}} {{-- --}} @if(in_array('ipd-admission-edit', $authRolePermissions)) @endif {{-- @if(in_array('ipd-admission-delete', $authRolePermissions)) @endif --}} @php $i=1; $Receive=[]; @endphp @if(count($data)>0) @foreach($data as $key => $ipd) @if(isset($ipd->sale_invoices_name) && !empty($ipd->sale_invoice_id) && $ipd->sale_invoice_id!='') @php $Receive = TransactionCalculationReceiveAmount($ipd->sale_invoice_id,'IPD_INVOICE'); @endphp @endif {{-- --}} {{-- @if(in_array('pathology-lab-billing-create', $authRolePermissions)) @if(!is_null($ipd->sale_invoices_name)) @else @endif @endif --}} @if(auth()->user()->can('pathology-lab-billing-list')) @endif {{----}} {{-- --}} @if(in_array('ipd-admission-edit', $authRolePermissions)) @endif {{-- @if(in_array('ipd-admission-delete', $authRolePermissions)) @endif --}} @endforeach @else @endif
Sl No IPD/CASE NO Patient Name Consultant Bed No.TPABill Amount BalanceIntent ListServiceCons. BillInfoDischargeEditDelete
{{$data->firstItem() + $key}} {{ $ipd->ipd_admission_no ?? '' }}
{!! @formatedDate($ipd->admission_date_time) !!}
{!! @formatedTime($ipd->admission_date_time) !!}
{!! ($ipd->casualty == 1) ? 'Emergency' : '' !!}
{!! @$ipd->contacts->name . ' ' . ($ipd->tpa_account_id != '' ? 'TPA' : '') !!}
{{ $ipd->contacts->account_contact->gender->name ?? '' }}, {{ (@$ipd->contacts->account_contact != null) ? age($ipd->contacts->account_contact->date_of_birth) . ' Years' : '' }}
{{ (@$ipd->contacts->account_contact != null) ? $ipd->contacts->account_contact->phone_no : '' }}
{!! $ipd->consultantHistory->consultants->account_title->name ?? '' !!} {!! $ipd->consultantHistory->consultants->name ?? '' !!} @if(isset($ipd->prepared_by))
By: {!! $ipd->prepared_by??'' !!}
@endif
@if($ipd->bed=='') Assign Bed @else {{ $ipd->bed ?? 'Not Assigned' }}
{!! $ipd->floor_name??'' !!} @endif
{{($ipd->getTpa->name ?? 'N/A')}} @if(isset($Receive['totalBilling']) && isset($ipd->sale_invoice_id) && !empty($ipd->sale_invoice_id) ) Total: {{ convertDecimelPoint($Receive['totalBilling']) ?? ''}} @if(isset($Receive['dueAmount']) && $Receive['dueAmount']>0)
Due: {{ convertDecimelPoint($Receive['dueAmount']) ?? ''}} @endif @else Bill Not Generated @endif
@if(isset($Receive['receivedAmount']) && $Receive['receivedAmount']>0 && !empty($ipd->sale_invoice_id)) Received: {{ convertDecimelPoint($Receive['receivedAmount']) ?? ''}} @endif
@if(isset($Receive['dueAmount']) && $Receive['dueAmount'] > 0) Collect @elseif(isset($Receive['dueAmount']) && $Receive['dueAmount']==0) @endif xMore Intent @if(empty($ipd->sale_invoice_id)) New Intent @else Intents @endif @if(isset($ipd->ipd_admission_discharged_id))

Yes

@else

No

@endif
No Data Found