@extends('Reports.template') @section('title') Patient Wise Bill Report @endsection @section('ExternalCss') @parent @endsection @section('Content')
@php $currentTime = \Carbon\Carbon::now(); $reportTitle = "Patient Wise Bill Report"; $billAmount = 0; $oldPatOrCustDetail = 0; @endphp @foreach($billDetail as $bill) @php if($bill->patient_id == NULL || $bill->patient_id == '0'){ $patOrCustDetail = "*" . $bill->ph_cust_id." / ".$bill->ph_cust_name; }else{ $patOrCustDetail = $bill->patient_id." / ".$bill->patient_name; } $billAmount = ($bill->trn_type == 'IR') ? $bill->total * -1 : $bill->total ; @endphp @if($patOrCustDetail != $oldPatOrCustDetail) @endif @php $oldPatOrCustDetail = $patOrCustDetail; @endphp @endforeach
@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}}
{{$reportTitle}} As on: {{$currentTime->format('d/m/Y H:i:s ')}}
Patient / Customer Bill No Bill Date Created Date Created By Bill Amount
{{$patOrCustDetail}} {{$bill->trn_type.$bill->trn_id}} {{\Helper::getDisplayDate($bill->trn_date)}} {{\Helper::getDisplayDate($bill->created_date)}} {{$bill->created_by}} {{\Helper::customAmountFormat($billAmount)}}
{{ strtoupper(Session::get('userId'))." # ".$currentTime->format('d/m/Y H:i:s ')}}
Back
@endsection @section('BootstrapModals') @endsection @section('ExternalJs') @endsection