@extends('Reports.template') @section('title') Receipt Data @endsection @section('ExternalCss') @parent @endsection @section('Content')
@if ($businessEntityMasterData[0]->logo != null) Pharmacy Logo @endif
{{ $businessEntityMasterData[0]->name }}
{{ $businessEntityMasterData[0]->add1 . ' ' . $businessEntityMasterData[0]->add2 . ' ' . $businessEntityMasterData[0]->city . ' : ' . $businessEntityMasterData[0]->pincode }}
{{ 'Phone : ' . $businessEntityMasterData[0]->tel1 }}
@if ($Report_Type == 'B' || $Report_Type == 'D') @php $currentTime = \Carbon\Carbon::now(); @endphp @php $patOrCustName = 0; $patOrCustId = 0; $ipId = 0; $tempPatientName = ''; $paymentMode = ''; $sr = 1; $total = 0; @endphp @foreach ($receiptData as $key => $receipt) @php $total += $receipt->receipt_amount; if ($receipt->patient_name != '') { $patOrCustName = $receipt->patient_id . ' / ' . $receipt->patient_name; $ipId = $receipt->ipd_reg_id; } else { $patOrCustName = '*' . $receipt->ph_cust_id . ' / ' . $receipt->ph_cust_name; $ipId = 0; } switch ($receipt->trn_receipt_type) { case 'A': $trn_receipt_type='Advance Credit'; break; case 'AA': $trn_receipt_type='Advance Adjusted'; break; case 'R': $trn_receipt_type='Refund'; break; case 'B': $trn_receipt_type='Bill'; break; case 'I': $trn_receipt_type='Internal'; break; } @endphp @if ($receipt->payment_agency!='') @else @endif @php $tempPatientName = $receipt->trn_receipt_date; @endphp @endforeach
Receipt Report Period : {{ \Helper::getDisplayDate($fromDate) }} TO {{ \Helper::getDisplayDate($toDate) }}
Sr No Receipt Date ReceiptNo Patient Name Patient Category IP ID Payment Type Payment Mode Bank Name Ref Number Amount User Id
{{ $sr++ }} {{ \Helper::getDisplayDate($receipt->trn_receipt_date) }} {{ $receipt->trn_receipt_no }} {{ $patOrCustName }} {{ $receipt->rate_type . '-' . $receipt->rate_card }} {{ \Helper::zeroValueToDash($ipId) }} {{ $trn_receipt_type }} {{ $receipt->gm_description }}{{ $receipt->payment_agency }} {{ $receipt->payment_number }} {{ \Helper::customAmountFormat($receipt->receipt_amount) }} {{ $receipt->created_by }}
Total   {{ \Helper::customAmountFormat($total) }}
{{ Config::get('constants.asterisk.WALK_CUST') }} {{ strtoupper(Session::get('userId')) . ' # ' . $currentTime->format('d/m/Y H:i:s ') }}
@endif

@if ($Report_Type == 'B' || $Report_Type == 'S') @php $grand_AC_total = 0; $grand_Bill_total = 0; $grand_Refund_total = 0; $grand_other = 0; @endphp @foreach ($payment_mode_Summary as $key => $summary) @php $AC_total = 0; $Bill_total = 0; $Refund_total = 0; $other = 0; $total=0; $checkTotal = 0; foreach ($receiptData as $receipt) { if ($receipt->payment_mode == $summary->gm_code) { if ($receipt->trn_receipt_type == 'A') { $AC_total += $receipt->receipt_amount; } elseif ($receipt->trn_receipt_type == 'B') { $Bill_total += $receipt->receipt_amount; } elseif ($receipt->trn_receipt_type == 'R') { $Refund_total += $receipt->receipt_amount; } else { $other += $receipt->receipt_amount; } } $total += $receipt->receipt_amount; } $grand_AC_total += $AC_total; $grand_Bill_total += $Bill_total; $grand_Refund_total += $Refund_total; $grand_other += $other; $checkTotal = $AC_total + $Bill_total + $Refund_total + $other; @endphp @if($checkTotal > 0) @endif @endforeach @php $currentTime = \Carbon\Carbon::now(); @endphp
Receipt Summary Period : {{ \Helper::getDisplayDate($fromDate) }} TO {{ \Helper::getDisplayDate($toDate) }}
Payment Mode Advance Credit Bill Refund Other Total
{{ $summary->gm_description }} {{ number_format((float) $AC_total, 2) }} {{ number_format((float) $Bill_total, 2) }} {{ number_format((float) $Refund_total, 2) }} {{ number_format((float) $other, 2) }} {{ number_format((float) ($AC_total + $Bill_total + $Refund_total + $other), 2) }}
Total : {{ number_format((float) $grand_AC_total, 2) }} {{ number_format((float) $grand_Bill_total, 2) }} {{ number_format((float) $grand_Refund_total, 2) }} {{ number_format((float) $grand_other, 2) }} {{ number_format((float) $total, 2) }}
{{ Config::get('constants.asterisk.WALK_CUST') }}, ✱{{ 'Credit Bill' }} {{ strtoupper(Session::get('userId')) . ' # ' . $currentTime->format('d/m/Y H:i:s ') }}
@endif
Back
@endsection @section('BootstrapModals') @endsection @section('ExternalJs') @endsection