@extends('Reports.template') @php $reportTitle = 'Pharmacy Supplier Payment Report'; @endphp @section('title') {{ $reportTitle }} @endsection @section('ExternalCss') @parent @endsection @section('Content') @php if ($trnStatus === 'P') { $trnStatusMessage = 'Pending'; } elseif ($trnStatus === 'C') { $trnStatusMessage = 'Completed'; } else { $trnStatusMessage = 'ALL'; } @endphp
@if ($businessEntityMasterData[0]->logo != null) @endif | @if ($reportType === 'D')@else |
@endif
{{ $businessEntityMasterData[0]->name }}
{{ $businessEntityMasterData[0]->add1 . ' ' . $businessEntityMasterData[0]->add2 . ' ' . $businessEntityMasterData[0]->city . ' : ' . $businessEntityMasterData[0]->pincode }}
{{ 'Phone : ' . $businessEntityMasterData[0]->tel1 }}
|
|||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{ $reportTitle . ' ' }} | @if ($reportType === 'D')@else | @endif | Period : {{ \Helper::getDisplayDate($fromDate) }} TO {{ \Helper::getDisplayDate($toDate) }} | ||||||||||||||||||||
Voucher No | Voucher Date | Bill No | Bill Date | Supplier Name | Bill Amount | @if ($reportType === 'D')Payment Vou | Payment Date | Payment Mode | Bank | Cheque/Ref No | Remarks | @endifAmount Paid | Outstanding | ||||||||||
{{ $trnType . "/" . $trnFyear . "/" . $trnId }} | {{ $purchaseHeaderData->Bill_Amount_Date }} | {{ $purchaseHeaderData->purchase_bill_no }} | {{ $purchaseHeaderData->purchase_bill_date }} | {{ $purchaseHeaderData->supplier_name }} | {{ number_format((float)$purchaseHeaderData->total, 2, '.', ',') }} | @if ($reportType === 'D') @foreach ($paymentDetailsMax as $detailsKey => $detailsValue) @if($detailsKey == $trnId) @php $trnDetailsCount = $trnDetailsCount + 1; @endphp @foreach ($detailsValue as $detailsValueKey => $finalValue){{ $finalValue->Payment_Vou_Fyear . '/' . $finalValue->Payment_Vou_No }} | {{ \Helper::getDisplayDate($finalValue->Bill_Amount_Date) }} | {{ $finalValue->payment_mode }} | {{ $finalValue->bank }} | {{ $finalValue->cheque_ref_no }} | {{ $finalValue->Payment_Remark }} | {{ number_format((float)$finalValue->Bill_Amount_Paid, 2, '.', ',') }} | @if($purchaseHeaderData->outstanding == 0) 0.00 @else {{ \Helper::customAmountFormat($purchaseHeaderData->outstanding) }} @endif | ||||||||||
@endforeach | |||||||||||||||||||||||
Total | {{ number_format((float)$purchaseHeaderData->total, 2, '.', ',') }} | {{ number_format((float)$purchaseHeaderData->total, 2, '.', ',') }} | @if($purchaseHeaderData->outstanding == 0) 0.00 @else {{ \Helper::customAmountFormat($purchaseHeaderData->outstanding) }} @endif | {{ $purchaseHeaderData->total }} | @else0.00 | @endif @if($purchaseHeaderData->outstanding != 0){{ \Helper::customAmountFormat($purchaseHeaderData->outstanding) }} | @else0.00 | @endif @endif @else||||||||||||||||
{{ $purchaseHeaderData->trn_type . "/" . $purchaseHeaderData->trn_fyear . "/" . $purchaseHeaderData->trn_id }} | {{ \Helper::getDisplayDate($purchaseHeaderData->trn_date) }} | {{ $purchaseHeaderData->purchase_bill_no }} | {{ \Helper::getDisplayDate($purchaseHeaderData->purchase_bill_date) }} | {{ $purchaseHeaderData->supplier_name }} | {{ number_format((float)$purchaseHeaderData->total, 2, '.', ',') }} | @if ($reportType === 'D') @foreach ($paymentDetailsMax as $trnId => $trnIdDetails) @if($trnId == $purchaseHeaderData->trn_id) @php $trnDetailsCount = $trnDetailsCount + 1; @endphp @if (count($trnIdDetails) > 0) @foreach ($trnIdDetails as $key => $value){{ $value->Payment_Vou_Fyear . '/' . $value->Payment_Vou_No }} | {{ \Helper::getDisplayDate($value->Bill_Amount_Date) }} | {{ $value->payment_mode }} | {{ $value->bank }} | {{ $value->cheque_ref_no }} | {{ $value->Payment_Remark }} | {{ number_format((float)$value->Bill_Amount_Paid, 2, '.', ',') }} | @if($purchaseHeaderData->outstanding == 0) 0.00 @else {{ \Helper::customAmountFormat($purchaseHeaderData->outstanding) }} @endif | ||||||||||
@endforeach | |||||||||||||||||||||||
Total | {{ number_format((float)$purchaseHeaderData->total, 2, '.', ',') }} | {{ number_format((float)$purchaseHeaderData->total_paid, 2, '.', ',') }} | @if($purchaseHeaderData->outstanding == 0) 0.00 @else {{ \Helper::customAmountFormat($purchaseHeaderData->outstanding) }} @endif | @if($purchaseHeaderData->outstanding == 0) 0.00 @else {{ number_format((float)$purchaseHeaderData->total_paid, 2, '.', ',') }} @endif | @if($purchaseHeaderData->outstanding == 0) 0.00 @else {{ \Helper::customAmountFormat($purchaseHeaderData->outstanding) }} @endif | @endif @endif @endforeach @endif @if ($purchaseHeaderKey >= $trnDetailsCount || $reportType === 'S') @if($purchaseHeaderData->total_paid != 0){{ $purchaseHeaderData->total_paid }} | @else0.00 | @endif@if($purchaseHeaderData->outstanding == 0) 0.00 @else {{ \Helper::customAmountFormat($purchaseHeaderData->outstanding) }} @endif | @endif @endif @endforeach @php $currentTime = \Carbon\Carbon::now(); @endphp@if ($reportType === 'D') | @else | @endif {{ strtoupper(Session::get('userId')) . ' # ' . $currentTime->format('d/m/Y H:i:s ') }} |