@extends('Reports.template') @section('title') Pharmacy Receipt @endsection @section('ExternalCss') @parent @endsection @section('Content') @php $receiptTime = explode(' ',$receipt->created_date); $receiptTime = $receiptTime[1]; $receiptDateTime = $receipt->receipt_date . " " . $receiptTime; @endphp @php $currentTime = \Carbon\Carbon::now(); @endphp
@if($businessEntityMasterData[0]->logo != null) Pharmacy Logologo )}}" /> @endif
{{ $businessEntityMasterData[0]->name }}
{{$businessEntityMasterData[0]->add1. " " .$businessEntityMasterData[0]->add2 ." ".$businessEntityMasterData[0]->city." : " .$businessEntityMasterData[0]->pincode }}
{{"Phone : ".$businessEntityMasterData[0]->tel1}}

@php if($receipt->trn_receipt_type == 'B'){ if($receipt->receipt_amount >= 0){ $receiptTitle = 'PHARMACY PAYMENT RECEIPT'; }else{ $receiptTitle = 'PHARMACY REFUND'; } }else if($receipt->trn_receipt_type == 'A'){ $receiptTitle = 'PHARMACY PAYMENT RECEIPT'; }else if($receipt->trn_receipt_type == 'R'){ $receiptTitle = 'PHARMACY REFUND ORDER'; } @endphp {{$receiptTitle}}

Receipt No: {{$receipt->receipt_no}} Date : {{\Helper::getDisplayDateTime($receiptDateTime)}}

@php if($receipt->patient_id == NULL || $receipt->patient_id == '0'){ $patOrCustLabel = "Customer : "; $patOrCustDetail = $receipt->ph_cust_id." / ".$receipt->ph_cust_name; }else{ $patOrCustLabel = "Patient : "; $patOrCustDetail = $receipt->patient_id." / ".$receipt->patient_name; } @endphp

@if($receipt->trn_receipt_type == 'R' || $receipt->receipt_amount < 0) Refunded with thanks to {{$patOrCustLabel}}{{$patOrCustDetail}} a Sum of Rupees {{ ucwords(\Helper::convertNumber(abs($receipt->receipt_amount)) . " only") }}   towards various Pharamcy Bills {{ $receipt->bill_no }} @else Received with thanks from {{$patOrCustLabel}}{{$patOrCustDetail}} a Sum of Rupees {{ ucwords(\Helper::convertNumber($receipt->receipt_amount) . " only") }}   towards @if($receipt->trn_receipt_type == 'A') Phramcy Payment @else various Pharamcy Bills @endif {{ $receipt->bill_no }} @endif


{{number_format(abs($receipt->receipt_amount),2)}}/-

@if($receipt->trn_receipt_type == 'R' || $receipt->receipt_amount < 0) Payment Refunded {{"By ".strtoupper($receipt->gm_description) }} @if(strtoupper($receipt->payment_agency != '')) {{", ".strtoupper($receipt->payment_agency) }} {{", ".strtoupper($receipt->payment_number) }} @endif @else Payment Received {{"By ".strtoupper($receipt->gm_description) }} @if(strtoupper($receipt->payment_agency != '')) {{", ".strtoupper($receipt->payment_agency) }} {{", ".strtoupper($receipt->payment_number) }} {{", ".strtoupper($receipt->payment_card_number) }} @endif @endif

For, {{ strtoupper(($businessEntityMasterData[0]->name)) }}


Authorized Signatory


Print By : {{ strtoupper($userId)." # ".$currentTime->format('d/m/Y H:i:s ')}} {!! $businessEntityMasterData[0]->remarks !!} Created By : @if($receipt->lastmodified_by) {{strtoupper($receipt->lastmodified_by.' # '.\Helper::getDisplayDateTime($receipt->lastmodified_date))}} @else {{strtoupper($receipt->created_by.' # '.\Helper::getDisplayDateTime($receipt->created_date))}} @endif
@php $backUrl = url('Item/PaymentCollection'); if($from == 'P'){ $backUrl = url('Item/PaymentCollection'); }else if($from == 'I'){ if(\Helper::getDatabaseName() == 'hms_v'){ $backUrl = \Helper::navigationUrl('./../../pages/registration/pharmacy_ip_patient_list.php','N'); } else { $ipdID = $receipt->ipd_reg_id; $backUrl = \Helper::navigationUrl('./../../pages/registration/ip_patient_list.php?search=search&&ipd_reg_id='.$ipdID,'N'); } } else if($from == 'IPC'){ $backUrl = \Helper::navigationUrl('./../../pages/billing/finalBillList.php?ipdOpd=I','N'); } else if($from == 'R'){ $backUrl = url('Item/ReceiptReprint'); } else if($from == 'RE'){ $backUrl = \Helper::navigationUrl('./../../pages/report/pharmacy_receipt_edit.php?receiptAdjustment=Y', 'N'); } @endphp Back
@endsection @section('BootstrapModals') @endsection @section('ExternalJs') @endsection