@extends('layouts.app') @section('title','IPD Admission') @section('pages') @php $show_checklist_btn = 1; if ((in_array('PATHOLOGY', $departments) && ($total_reports > $doneReports)) || $admission->ipd_checklist_verified == 1) { $show_checklist_btn = 0; } @endphp
@include('layouts.partials.nav-menu')
{{ $patient->account_title ? $patient->account_title->name : '' }} {{ $patient->name ? $patient->name : '' }} ({{ $patient->code }})
@if(!empty($dischargeExists) && isset($saleInvoice->id) ) @endif @if($admission->ipd_checklist_verified == 1) @endif
Age: {{age($patient->account_contact->date_of_birth).' years'}}, Gender: {{$patient->account_contact->gender->name ?? ''}}, Date Of Birth: {{formatedDate($patient->account_contact->date_of_birth) ?? ''}}, Marital Status: {{$marital_status->name ?? ''}}, Blood Group: {{$blood_group->group ?? ''}}
@if($patient->account_contact->any_known_allergies) Any Known Allergies: {{$patient->account_contact->any_known_allergies}}
@endif @if($admission->note) Admission Note: {{$admission->note}} @endif
Admission Details

Admission No {{$admission->ipd_admission_no}}
IPD CASE/FILE NUMBER {{$admission->ipd_file_no ?? 'N/A'}}
Patient Name {{$patient->account_title->name ?? '' }}{{ $patient->name ?? ' '}}
Admission Date {!!formatedDateTime($admission->admission_date_time)!!}
Referred By {{$admission->referal_from ?? 'N/A'}}
Additional Details

Previous medical issue {{$admission->previous_medical_issue ?? 'N/A'}}
Patient source {{$patient_source->enquiry_source_name}}
TPA {{$tpa_account->name ?? 'N/A'}}
Referral partner {{$refferal_partner->name ?? 'N/A'}}
Casualty {{($admission->casualty == '1') ? 'Yes' : 'No'}}
@if(isset($patient->account_images->image) && $patient->account_images->image != '') @else @endif

Update Profile Image

Total Reports Done Reports Pending Sample Collections Pending Updates
{{ $total_reports }} {{ $doneReports }} {{ $total_reports - $sampleCollected }} {{ $total_reports - $updatedReports }}
@if (count($pending_history)>0) @foreach ($pending_history as $key => $bed) @php if (in_array('PATHOLOGY', $departments) && ($bed->bill_status == '1')) { $show_checklist_btn = 0; } @endphp @endforeach @else @endif
Sl No Bed No Billing
{{ $key+1 }} {{ $bed->getBed->name ?? 'N/A' }} {{ $bed->getBed->getRoom->room_name ?? ''}} - {{ $bed->getBed->getRoom->getBuilding->name ?? ''}}({{ $bed->getBed->getRoom->getFloor->name ?? ''}}) {{ ($bed->bill_status == '1') ? 'Done' : 'Pending' }}
No Data Found
@php $i=1;@endphp @if(count($salereturn)>0) @foreach($salereturn as $key=> $list) @php $Receive = ReturnTransactionCalculationReceiveAmount($list->id,'SALE_RETURN'); @endphp @php $i++; @endphp @php if (in_array('PATHOLOGY', $departments) && (isset($Receive['dueAmount']) && $Receive['dueAmount'] > 0)) { $show_checklist_btn = 0; } @endphp @endforeach @else @endif
Sl No Invoice No. Bill Amount Status Bill
{{ $key+1 }} {{$list->voucher_type_invoice_no}}
{{ formatedDateTime($list->invoice_date) }}
Total: {{ convertDecimelPoint($Receive['totalBilling']) ?? ''}}
Received: {{ convertDecimelPoint($Receive['receivedAmount']) ?? ''}} @if($Receive['dueAmount']>0)
Due: {{ convertDecimelPoint($Receive['dueAmount']) ?? ''}} @endif
{{ isset($Receive['dueAmount']) && $Receive['dueAmount'] > 0 ? 'Pending' : 'Paid' }}
No Data Found
@php $i=1;@endphp @if(count($saleInvoices)>0) @foreach($saleInvoices as $key => $list) @php $Receive = TransactionCalculationReceiveAmount($list->id,'IPD_INVOICE'); @endphp @php $i++; @endphp @php if (in_array('PATHOLOGY', $departments) && (isset($Receive['dueAmount']) && $Receive['dueAmount'] > 0)) { $show_checklist_btn = 0; } @endphp @endforeach @else @endif
Sl No Invoice No. Bill Amount Status Balance
{{ $key+1 }} {{$list->voucher_type_invoice_no??''}}
{{ formatedDate($list->invoice_date) }}
{{ formatedTime($list->invoice_date) }}
Total: {{ convertDecimelPoint($Receive['totalBilling']) ?? ''}}
Received: {{ convertDecimelPoint($Receive['receivedAmount']) ?? ''}} @if($Receive['dueAmount']>0)
Due: {{ convertDecimelPoint($Receive['dueAmount']) ?? ''}} @endif
{{ isset($Receive['dueAmount']) && $Receive['dueAmount'] > 0 ? 'Pending' : 'Paid' }} {!! $Receive['dueAmount'] > 0 ? 'Collect' : '' !!}
No Data Found
@endsection @section('js') @endsection