@extends('Reports.template') @section('title') Bill Wise GST Breakup @endsection @section('ExternalCss') @parent @endsection @section('Content')
@php $currentTime = \Carbon\Carbon::now(); $stockTitle = "Bill Wise GST Breakup"; @endphp @php $trnId = ""; $oldTrnId = ""; $billNo = ""; $netTotal = ""; $patOrCustDetail = ""; $finalCgstAmt = 0; $finalSgstAmt = 0; $finalTaxableAmt = 0; $finalTaxAmt = 0; $finalDiscountAmt = 0; $finalTotal = 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; } $trnId = $bill->trn_id; $style = ""; if($trnId == $oldTrnId){ $style = "borderTopGray"; }else{ $style = "borderTop"; } $billNo = $bill->trn_type."/".$bill->trn_fyear."/".$bill->trn_id; $billDate = $bill->trn_date; $netTotal = $bill->cgst_value + $bill->sgst_value + $bill->taxable_amt; $finalCgstAmt += $bill->cgst_value; $finalSgstAmt += $bill->sgst_value; $finalTaxableAmt += $bill->taxable_amt; $finalTotal += $netTotal; @endphp @php $oldTrnId = $bill->trn_id; @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}}
{{$stockTitle}} As on: {{$currentTime->format('d/m/Y H:i:s ')}}
 Bill No Bill Date Patient Taxable Amt GST % CGST Amt SGST Amt Total
{{$billNo}} {{\Helper::getDisplayDate($billDate)}} {{$patOrCustDetail}} {{\Helper::customAmountFormat($bill->taxable_amt)}} {{$bill->gst_percentage}} {{\Helper::customAmountFormat($bill->cgst_value)}} {{\Helper::customAmountFormat($bill->sgst_value)}} {{\Helper::customAmountFormat($netTotal)}}
Total {{\Helper::customAmountFormat($finalTaxableAmt)}} {{\Helper::customAmountFormat($finalCgstAmt)}} {{\Helper::customAmountFormat($finalSgstAmt)}} {{\Helper::customAmountFormat($finalTotal)}}
{{ strtoupper(Session::get('userId'))." # ".$currentTime->format('d/m/Y H:i:s ')}}
Back
@endsection @section('BootstrapModals') @endsection @section('ExternalJs') @endsection