@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']}}

Period Bill / {{date("d M Y", strtotime($bill->start_date))}} - {{date("d M Y", strtotime($bill->end_last))}}

M/s. {{$bill->name}} bill no. {{$bill->billno}}
Address: {{@$bill->address1.' '.@$bill->address2.' '.@$bill->city}} date {{date("d/m/Y", strtotime($bill->created_at))}}
phone: {{@$bill->phone1}}
GST No. {{@$bill->gstno}}
@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) }}
@if($branch['bill_terms_and_conditions'] != '') @else @endif
@if($bill->cgstpercent == 0 && $bill->sgstpercent == 0 && $bill->igstpercent == 0) @endif
GST No.- {{@$branch['gstno']}}
{{@$branch['bank_address']}}
A/C.No. - {{@$branch['bank_acno']}}
IFSC CODE - {{@$branch['ifsc_code']}}
LUT NO - {{@$branch['lut_no']}}
HSN/SAC CODE - {{@$branch['sac_code']}}
Pan Card No. - {{@$branch['pancard']}}
Mo. {{@$branch['contact_no']}}
    @php $termsAndConditionsArr = explode("\n", str_replace("\r", "", @$branch['bill_terms_and_conditions'])); @endphp @foreach($termsAndConditionsArr as $termsAndConditions) {{$termsAndConditions}}
    @endforeach

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

@if($branch['payment_qr_code'])
Payment QR Code
Stamp
@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($all_parcels) > 0)

Bill Detail / {{date("d M Y", strtotime($bill->start_date))}} - {{date("d M Y", strtotime($bill->end_last))}}

@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($branch['payment_qr_code'])
Payment QR Code
Stamp
@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
@endif @endforeach