@extends('Reports.template') @section('title') @php $reportTitle = 'Patient Wise Sales Report - With GST'; @endphp {{ $reportTitle }} @endsection @section('ExternalCss') @parent @endsection @section('Content') @if ($Report_Type=='D')
@if ($businessEntityMasterData[0]->logo != null) @endif |
{{ $businessEntityMasterData[0]->name }}
{{ $businessEntityMasterData[0]->add1 . ' ' . $businessEntityMasterData[0]->add2 . ' ' . $businessEntityMasterData[0]->city . ' : ' . $businessEntityMasterData[0]->pincode }}
{{ 'Phone : ' . $businessEntityMasterData[0]->tel1 }}
|
||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{ $reportTitle }} | IP Bill Period : {{ \Helper::getDisplayDate($fromdate) }} TO {{ \Helper::getDisplayDate($todate) }} | ||||||||||||||
Sr No. | Trn No | Trn Date | Bill Type | ||||||||||||
Sr No. | Product Name | Category | Batch | Qty | MRP | Gross Total | Disc% | Disc | Taxable | GST% | GST | Net Total | |||
Total : | {{ $totalquantity }} | {{ \Helper::customAmountFormat($totalAmt) }} | {{ \Helper::customAmountFormat($totaldiscount_amt) }} | {{ \Helper::customAmountFormat($totaltaxable_amt) }} | {{ \Helper::customAmountFormat($totalgst) }} | {{ \Helper::customAmountFormat($NetTotal) }} | |||||||||
Patient Total : | {{ $patienttotalquantity }} | {{ \Helper::customAmountFormat($patienttotalAmt) }} | {{ \Helper::customAmountFormat($patienttotaldiscount_amt) }} | {{ \Helper::customAmountFormat($patienttotaltaxable_amt) }} | {{ \Helper::customAmountFormat($patienttotalgst) }} | {{ \Helper::customAmountFormat($patientNetTotal) }} | |||||||||
Entity Total : | {{ $entitytotalquantity }} | {{ \Helper::customAmountFormat($entitytotalAmt) }} | {{ \Helper::customAmountFormat($entitytotaldiscount_amt) }} | {{ \Helper::customAmountFormat($entitytotaltaxable_amt) }} | {{ \Helper::customAmountFormat($entitytotalgst) }} | {{ \Helper::customAmountFormat($entityNetTotal) }} | |||||||||
Entity : {{ $entity_name }} | |||||||||||||||
Patient : {{ $patient_id . ' / ' . $patient_name }} IP ID : {{ $ipd_reg_id }} | @if($ipId=='')Discharge Date : @if ($profit->discharge_date!="0000-00-00") {{ \Helper::getDisplayDate($profit->discharge_date) }} @endif | @endif||||||||||||||
{{ $headerSr++ }} | {{ $profit->trn_type."/".$profit->trn_fyear."/". $profit->trn_id }} | {{ \Helper::getDisplayDate($profit->trn_date) }} | {{ $profit->is_credit_bill=="N"?'CASH':'' }} | ||||||||||||
{{ $transactionSr++ }} | {{ $profit->product_name }} | {{ $profit->category_abbrev }} | {{ $profit->batch_no }} | {{ $profit->quantity }} | {{ \Helper::customAmountFormat($mrp) }} | {{ \Helper::customAmountFormat($total) }} | {{ \Helper::customAmountFormat($discount) }} | {{ \Helper::customAmountFormat($discount_amt) }} | {{ \Helper::customAmountFormat($taxable_amt) }} | {{ \Helper::customAmountFormat(floatval($profit->sgst_percentage) + floatval($profit->cgst_percentage)) }} | {{ \Helper::customAmountFormat($gst) }} | {{ \Helper::customAmountFormat($taxable_amt+$gst) }} | |||
Total : | {{ $totalquantity }} | {{ \Helper::customAmountFormat($totalAmt) }} | {{ \Helper::customAmountFormat($totaldiscount_amt) }} | {{ \Helper::customAmountFormat($totaltaxable_amt) }} | {{ \Helper::customAmountFormat($totalgst) }} | {{ \Helper::customAmountFormat($NetTotal) }} | |||||||||
Patient Total : | {{ $patienttotalquantity }} | {{ \Helper::customAmountFormat($patienttotalAmt) }} | {{ \Helper::customAmountFormat($patienttotaldiscount_amt) }} | {{ \Helper::customAmountFormat($patienttotaltaxable_amt) }} | {{ \Helper::customAmountFormat($patienttotalgst) }} | {{ \Helper::customAmountFormat($patientNetTotal) }} | |||||||||
Entity Total : | {{ $entitytotalquantity }} | {{ \Helper::customAmountFormat($entitytotalAmt) }} | {{ \Helper::customAmountFormat($entitytotaldiscount_amt) }} | {{ \Helper::customAmountFormat($entitytotaltaxable_amt) }} | {{ \Helper::customAmountFormat($entitytotalgst) }} | {{ \Helper::customAmountFormat($entityNetTotal) }} | |||||||||
Bill Total : | {{ $grosstotalquantity }} | {{ \Helper::customAmountFormat($grosstotalAmt) }} | {{ \Helper::customAmountFormat($grosstotaldiscount_amt) }} | {{ \Helper::customAmountFormat($grosstotaltaxable_amt) }} | {{ \Helper::customAmountFormat($grosstotalgst) }} | {{ \Helper::customAmountFormat($grossNetTotal) }} | |||||||||
{{ strtoupper(Session::get('userId')) . ' # ' . $currentTime->format('d/m/Y H:i:s ') }} |
@if ($businessEntityMasterData[0]->logo != null) @endif |
{{ $businessEntityMasterData[0]->name }}
{{ $businessEntityMasterData[0]->add1 . ' ' . $businessEntityMasterData[0]->add2 . ' ' . $businessEntityMasterData[0]->city . ' : ' . $businessEntityMasterData[0]->pincode }}
{{ 'Phone : ' . $businessEntityMasterData[0]->tel1 }}
|
|||||||
---|---|---|---|---|---|---|---|---|
{{ $reportTitle }} | IP Bill Period : {{ \Helper::getDisplayDate($fromdate) }} TO {{ \Helper::getDisplayDate($todate) }} | |||||||
Sr No. | Trn No | Trn Date | Bill Type | Gross Total | Disc Amt | Taxable | GST | Net Total | {{ \Helper::customAmountFormat($totalAmt) }} | {{ \Helper::customAmountFormat($totaldiscount_amt) }} | {{ \Helper::customAmountFormat($totaltaxable_amt) }} | {{ \Helper::customAmountFormat($totalgst) }} | {{ \Helper::customAmountFormat($NetTotal) }} | @endif @if ($headerSr > 1 && $patient_id != $oldPatient)
Patient Total : | {{ \Helper::customAmountFormat($patienttotalAmt) }} | {{ \Helper::customAmountFormat($patienttotaldiscount_amt) }} | {{ \Helper::customAmountFormat($patienttotaltaxable_amt) }} | {{ \Helper::customAmountFormat($patienttotalgst) }} | {{ \Helper::customAmountFormat($patientNetTotal) }} | |||
Entity Total : | {{ \Helper::customAmountFormat($entitytotalAmt) }} | {{ \Helper::customAmountFormat($entitytotaldiscount_amt) }} | {{ \Helper::customAmountFormat($entitytotaltaxable_amt) }} | {{ \Helper::customAmountFormat($entitytotalgst) }} | {{ \Helper::customAmountFormat($entityNetTotal) }} | |||
Entity : {{ $entity_name }} | ||||||||
Patient : {{ $patient_id . ' / ' . $patient_name }} IP ID : {{ $ipd_reg_id }} | @if($ipId=='')Discharge Date : @if ($profit->discharge_date!="0000-00-00") {{ \Helper::getDisplayDate($profit->discharge_date) }} @endif | @endif|||||||
{{ $headerSr++ }} | {{ $profit->trn_type."/".$profit->trn_fyear."/" . $profit->trn_id }} | {{ \Helper::getDisplayDate($profit->trn_date) }} | {{ $profit->is_credit_bill=="N"?'CASH':'' }} | @endif @php $totalquantity += $profit->quantity; $totalMrp += $mrp; $totaldiscount_amt += $discount_amt; $totaltaxable_amt += $taxable_amt; $totalgst += ($gst); $totalAmt+= $total; $NetTotal += ($gst+$taxable_amt); if ($patient_id != '') { $patienttotalSaleMrp += $mrp; $patienttotalquantity += $profit->quantity; $patienttotaldiscount_amt += $discount_amt; $patienttotaltaxable_amt += $taxable_amt; $patienttotalgst += ($gst); $patienttotalAmt+= $total; $patientNetTotal += ($gst+$taxable_amt); } $entitytotalquantity += $profit->quantity; $entitytotaldiscount_amt += $discount_amt; $entitytotaltaxable_amt += $taxable_amt; $entitytotalgst += ($gst); $entitytotalAmt+= $total; $entityNetTotal += ($gst+$taxable_amt); $grosstotalSaleMrp += $mrp; $grosstotalquantity += $profit->quantity; $grosstotaldiscount_amt += $discount_amt; $grosstotaltaxable_amt += $taxable_amt; $grosstotalgst += ($gst); $grosstotalAmt+= $total; $grossNetTotal += ($gst+$taxable_amt); $oldTrnType = $profit->trn_type; $oldTrnId = $profit->trn_id; if ($patient_id != '') { $oldPatient = $patient_id; $oldEntity = $entity_name; } @endphp @endforeach @endif{{ \Helper::customAmountFormat($totalAmt) }} | {{ \Helper::customAmountFormat($totaldiscount_amt) }} | {{ \Helper::customAmountFormat($totaltaxable_amt) }} | {{ \Helper::customAmountFormat($totalgst) }} | {{ \Helper::customAmountFormat($NetTotal) }} |
Patient Total : | {{ \Helper::customAmountFormat($patienttotalAmt) }} | {{ \Helper::customAmountFormat($patienttotaldiscount_amt) }} | {{ \Helper::customAmountFormat($patienttotaltaxable_amt) }} | {{ \Helper::customAmountFormat($patienttotalgst) }} | {{ \Helper::customAmountFormat($patientNetTotal) }} | |||
Entity Total : | {{ \Helper::customAmountFormat($entitytotalAmt) }} | {{ \Helper::customAmountFormat($entitytotaldiscount_amt) }} | {{ \Helper::customAmountFormat($entitytotaltaxable_amt) }} | {{ \Helper::customAmountFormat($entitytotalgst) }} | {{ \Helper::customAmountFormat($entityNetTotal) }} | |||
Bill Total : | {{ \Helper::customAmountFormat($grosstotalAmt) }} | {{ \Helper::customAmountFormat($grosstotaldiscount_amt) }} | {{ \Helper::customAmountFormat($grosstotaltaxable_amt) }} | {{ \Helper::customAmountFormat($grosstotalgst) }} | {{ \Helper::customAmountFormat($grossNetTotal) }} | |||
{{ strtoupper(Session::get('userId')) . ' # ' . $currentTime->format('d/m/Y H:i:s ') }} |
Entity Wise Summery | IP Bill Period : {{ \Helper::getDisplayDate($fromdate) }} TO {{ \Helper::getDisplayDate($todate) }} | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Entity Name | Gross Total | Cash Bill Total | Credit Bill Total | Disc | Taxable | GST | Net Total | ||||||||
{{ $oldEntity }} | {{ \Helper::customAmountFormat($vtotal) }} | {{ \Helper::customAmountFormat($cash_bill) }} | {{ \Helper::customAmountFormat($credit_bill) }} | {{ \Helper::customAmountFormat($vdiscount_amt) }} | {{ \Helper::customAmountFormat($vtaxable_amt) }} | {{ \Helper::customAmountFormat($vgst) }} | {{ \Helper::customAmountFormat($vgst+$vtaxable_amt) }} | ||||||||
{{ $oldEntity }} | {{ \Helper::customAmountFormat($vtotal) }} | {{ \Helper::customAmountFormat($cash_bill) }} | {{ \Helper::customAmountFormat($credit_bill) }} | {{ \Helper::customAmountFormat($vdiscount_amt) }} | {{ \Helper::customAmountFormat($vtaxable_amt) }} | {{ \Helper::customAmountFormat($vgst) }} | {{ \Helper::customAmountFormat($vtaxable_amt+$vgst) }} | ||||||||
Total : | {{ \Helper::customAmountFormat($nettotal) }} | {{ \Helper::customAmountFormat($netcash_bill) }} | {{ \Helper::customAmountFormat($netcredit_bill) }} | {{ \Helper::customAmountFormat($totaldiscount_amt) }} | {{ \Helper::customAmountFormat($totaltaxable_amt) }} | {{ \Helper::customAmountFormat($totalgst) }} | {{ \Helper::customAmountFormat($totaltaxable_amt+$totalgst) }} | {{ strtoupper(Session::get('userId')) . ' # ' . $currentTime->format('d/m/Y H:i:s ') }} |