Invoice No : {!! $invoice->main_invoice_no ?? '' !!}
Date : {!! $invoice->invoice_date ? formatedDate($invoice->invoice_date) : '' !!}
Reff No. : {!! $invoice->reff_no ?? '' !!}
@php $patient = $invoice->getPatient; $patientContact = $patient->account_contact ?? null; $patientTitle = $patient->account_title??null; $patientAddress = $patient->first_account_address ?? null; $dateOfBirth = $patientContact->date_of_birth ?? ''; $age = $dateOfBirth != '' ? age($dateOfBirth) : 0; $generatorPNG = new Picqer\Barcode\BarcodeGeneratorPNG(); $ref_doctor = $invoice->getDoctor ? ucfirst(@$invoice->getDoctor->name) : 'Self'; $doctorTitle = $invoice->getDoctor->account_title??null; $doctorQualification = $invoice->getDoctor->account_contact??null; $collectionAgent = $invoice->getCollectionAgent? ucfirst(@$invoice->getCollectionAgent->name):''; $collectionAgentTitle = $invoice->getCollectionAgent->account_title??null; $referralLab = $invoice->getRefferalLab?ucfirst(@$invoice->getRefferalLab->name):''; $referralLabTitle = $invoice->getRefferalLab->account_title??null; $mainInvoiceNo = $invoice->main_invoice_no ?? ''; $barcodeData = base64_encode($generatorPNG->getBarcode($mainInvoiceNo, $generatorPNG::TYPE_CODE_128)); @endphp
{!! $voucherTitle ?? '' !!}