@foreach($bills as $bill) @php $isNewBill = isset($bill->rounding_amount) && !is_null($bill->rounding_amount) && $bill->rounding_amount != 0; if ($isRoundingEnabled) { if ($isNewBill) { $finalGrandTotal = $bill->grandtotal; $roundValue = $bill->rounding_amount; } else { $grandAmount = $bill->grandtotal; $ceilAmount = ceil($grandAmount); $floorAmount = floor($grandAmount); $roundValue = $ceilAmount - $grandAmount; $finalGrandTotal = ($roundValue > 0 && $roundValue <= 0.50) ? $ceilAmount : $floorAmount; } } else { $finalGrandTotal = $isNewBill ? $bill->grandtotal - $bill->rounding_amount : $bill->grandtotal; $roundValue = 0; } $totAmount = $bill->amount;; @endphp

{{@$branch['person_name']}}

{{@$branch['address']}}, {{@$branch['city']}} - {{@$branch['zipcode']}}

MONTHLY BILL / {{date("M Y", strtotime($bill->start_date))}}

M/s. {{$bill->name}}

Address: {{@$bill->address1.' '.@$bill->address2.' '.@$bill->city}}

Phone: {{@$bill->phone1}}

GST No. {{@$bill->gstno}}

Bill No. {{$bill->billno}}

Date: {{date("d/m/Y", strtotime($bill->created_at))}}

@if($value == 'Positive') @endif @if($roundValue > 0 && $roundValue <= 0.50) @endif
particular amount
courier charges for the month of {{date("M Y", strtotime($bill->start_date))}} {{Laracore::showPrice($parcels[0]->total_amount)}}
discount - {{Laracore::showPrice($parcels[0]->total_amount - $bill->amount)}}
cgst % ({{$bill->cgstpercent}}) {{Laracore::showPrice(($totAmount * $bill->cgstpercent)/100)}}
sgst / utgst % ({{$bill->sgstpercent}}) {{Laracore::showPrice(($totAmount * $bill->sgstpercent)/100)}}
igst % ({{$bill->igstpercent}}) {{Laracore::showPrice(($totAmount * $bill->igstpercent)/100)}}
Round Of {{Laracore::showPrice($roundValue)}}
grand total {{ Laracore::showPrice($finalGrandTotal) }}

(Rupees in words) {{ getIndianCurrency($finalGrandTotal) }}

GST No. - {{@$branch['gstno']}}

{{@$branch['bank_address']}}

A/C.No. - {{@$branch['bank_acno']}}

IFSC CODE - {{@$branch['ifsc_code']}}

@if($bill->cgstpercent == 0 && $bill->sgstpercent == 0 && $bill->igstpercent == 0)

LUT NO - {{@$branch['lut_no']}}

@endif

HSN/SAC CODE - {{@$branch['sac_code']}}

Pan Card No. - {{@$branch['pancard']}}

Mo. {{@$branch['contact_no']}}

@if($branch['bill_terms_and_conditions'] != '')
@php $termsAndConditionsArr = explode("\n", str_replace("\r", "", @$branch['bill_terms_and_conditions'])); $lineCount = 1; @endphp @foreach($termsAndConditionsArr as $termsAndConditions) @if($lineCount <= 5)

{{$termsAndConditions}}

@php $lineCount++; @endphp @endif @endforeach
@else
PLEASE MAKE PAYMENT BY A/c. PAYEE CHEQUE IN FAVOR OF {{strtoupper(@$branch['name'])}}
PLEASE MAKE PAYMENT BY AMOUNT DUE ON 1 TO 5 DAYS
@endif
@if($branch['payment_qr_code'])
Payment QR Code
qr-code @endif
@if($digital_signature == 1)
Digitally signed by {{strtoupper(@$branch['name'])}}
Date:{{date("d/m/Y", strtotime($bill->created_at))}}
Location:{{@$branch['city']}}
@elseif($digital_signature == 2 && $branch['stamp'] != '')
For, {{@$branch['name']}}
Stamp @else
For, {{@$branch['name']}}
Autho / Sign.
@endif
@if(count($datas) > 0)
BILL DETAIL / {{date("M Y", strtotime($bill->start_date))}}
@php $srno = 1; $total_parcel_amount = $total_ess = $total_fuel = $total_other = $total_insurance_amount = 0; @endphp @foreach($datas as $parcels) @php (@$parcels['center'] != '') ? $srno++ :''; $total_parcel_amount = $total_parcel_amount + $parcels['parcel_amount']; $total_ess = $total_ess + @$parcels['ess_charge_amount']; $total_fuel = $total_fuel + @$parcels['fuel_amount']; $insurance_amount = (is_null($parcels['insurance'])) ? 0 : $parcels['insurance']; $total_insurance_amount = $total_insurance_amount + $insurance_amount; @endphp @endforeach @if($bill->igstpercent > 0) @endif @if($roundValue > 0 && $roundValue <= 0.50) @endif
sr receiver center date cons_no remark weight charges
{{(@$parcels['center'] != '') ? $srno :''}} {{@$parcels['receiver']}} {{@$parcels['center']}} {{(@$parcels['date'] != '') ? date("d/m/Y", strtotime(@$parcels['date'])) :''}} {{@$parcels['cons_no']}} {{@$parcels['remakrs']}} {{@$parcels['weight']}} {{strtoupper(@$parcels['weight_type'])}} {{Laracore::showPrice(@$parcels['parcel_amount'])}}
Amount {{Laracore::showPrice(@$total_parcel_amount)}}
ESS Charge {{Laracore::showPrice(@$total_ess)}}
Fuel Charge {{Laracore::showPrice(@$total_fuel)}}
Insurance Amount {{Laracore::showPrice(@$total_insurance_amount)}}
cgst % ({{$bill->cgstpercent}}) {{Laracore::showPrice(($totAmount * $bill->cgstpercent)/100)}}
sgst / utgst % ({{$bill->sgstpercent}}) {{Laracore::showPrice(($totAmount * $bill->sgstpercent)/100)}}
igst % ({{$bill->igstpercent}}) {{Laracore::showPrice(($totAmount * $bill->igstpercent)/100)}}
Round Of {{Laracore::showPrice($roundValue)}}
grand total {{ Laracore::showPrice($finalGrandTotal) }}

(Rupees in words) {{ getIndianCurrency($finalGrandTotal) }}

@if($digital_signature == 1)
Digitally signed by {{strtoupper(@$branch['name'])}}
Date:{{date("d/m/Y", strtotime($bill->created_at))}}
Location:{{@$branch['city']}}
@elseif($digital_signature == 2 && $branch['stamp'] != '')
For, {{@$branch['name']}}
Stamp @else
For, {{@$branch['name']}}
Autho / Sign.
@endif
@endif
@endforeach