@extends('Reports.template') @section('title') Pharmacy Sales Write Off Report @endsection @section('ExternalCss') @parent @endsection @section('Content') @php $currentTime = \Carbon\Carbon::now(); @endphp @php $sr = 1; $totalCreditAmt = 0; $totalDebitAmt = 0; $ipId = 0; @endphp @foreach ($writeOffData as $writeOff) @php if($writeOff->patient_name != ''){ $patOrCustName = " ".$writeOff->patient_id." / ".$writeOff->patient_name; $ipId = $writeOff->ipd_reg_id; }else{ $patOrCustName = '*'.$writeOff->ph_cust_id." / ".$writeOff->ph_cust_name; $ipId = 0; } if($writeOff->balance_type == "C"){ $creditAmt = $writeOff->amount_received; $debitAmt = 0; $totalCreditAmt += $writeOff->amount_received; }else{ $debitAmt = $writeOff->amount_received; $creditAmt = 0; $totalDebitAmt += $writeOff->amount_received; } @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}}
Pharmacy Sales Write Off Report Period : {{\Helper::getDisplayDate($fromDate)}} TO {{\Helper::getDisplayDate($toDate)}}
Sr No   Patient / Customer Details IP ID Write Off ID     Write Off DateTime Remarks Credit Amt Debit Amt Settled By
{{$sr++}}   {{ $patOrCustName }} {{ \Helper::zeroValueToSpace($ipId) }} {{ $writeOff->bill_writeoff_id }}     {{ $writeOff->created_date }} {{ $writeOff->remarks }} {{\Helper::customAmountFormat($creditAmt)}} {{\Helper::customAmountFormat($debitAmt)}} {{$writeOff->created_by}}
Total : {{\Helper::customAmountFormat($totalCreditAmt)}} {{\Helper::customAmountFormat($totalDebitAmt)}}
{{Config::get('constants.asterisk.WALK_CUST')}} {{ strtoupper(Session::get('userId'))." # ".$currentTime->format('d/m/Y H:i:s ')}}
Back
@endsection @section('ExternalJs') @endsection