@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; } $fuelAmount = ($bill->amount * $bill->fchpercent)/100; $totAmount = $bill->amount + $fuelAmount; @endphp
M/S. {{@$branch['name']}}
{{@$branch['address']}}, {{@$branch['city']}} - {{@$branch['zipcode']}}
Phone : {{@$branch['contact_no']}}
GST Number : {{@$branch['gstno']}}

INVOICE

GST NO.

: {{@$branch['gstno']}}

Invoice No.

: {{$bill->billno}}

Invoice Date.

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


SAC Code.

: 996812

Period From

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

Period To

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

To

: M/S. {{$bill->name}}

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

GST Number : {{@$bill->gstno}}

@if(count($parcels_data) > 0) @php $srno = 1; $total_weight = $total_booking_amount = $parcel_fuel_amount = 0; @endphp @foreach($parcels_data as $parcel) @php $srno++; $total_weight = $total_weight + $parcel['weight']; $total_booking_amount = $total_booking_amount + $parcel['net_amt'] - $parcel['fuel']; $parcel_fuel_amount = $parcel_fuel_amount + $parcel['fuel']; @endphp @endforeach @endif @if($value == 'Positive') @endif @if($bill->igstpercent != 0) @endif @if($roundValue > 0 && $roundValue <= 0.50) @endif
Sl Consignment Number Booking Date Destination City Weight Gm Amount Rs. Ps.
{{$srno}} {{$parcel['cons_no']}} {{date("d/m/Y", strtotime($parcel['date']))}} {{$parcel['center']}} {{$parcel['weight']}} {{Laracore::showPrice($parcel['net_amt'] - $parcel['fuel'])}}
TOTAL {{$total_weight}} {{Laracore::showPrice($total_booking_amount)}}
TOTAL {{Laracore::showPrice($total_booking_amount)}}
Fuel Surcharge {{Laracore::showPrice($parcel_fuel_amount)}}
Discount {{Laracore::showPrice($parcels[0]->total_amount - $bill->amount)}}
Sub Total {{Laracore::showPrice($bill->amount)}}
CGST({{$bill->cgstpercent}}%) {{Laracore::showPrice(($totAmount * $bill->cgstpercent)/100)}}
SGST({{$bill->sgstpercent}}%) {{Laracore::showPrice(($totAmount * $bill->sgstpercent)/100)}}
IGST({{$bill->igstpercent}}%) {{Laracore::showPrice(($totAmount * $bill->igstpercent)/100)}}
Round Of {{Laracore::showPrice($roundValue)}}
Total {{ Laracore::showPrice($finalGrandTotal) }}
: {{ getIndianCurrency($finalGrandTotal) }}
: PLEASE ISSUE CHEQUE IN FAVOUR OF M/S. {{@$branch['name']}}

Bank Details

{{@$branch['bank_address']}}
A/C. No. - {{@$branch['bank_acno']}}
IFSC CODE - {{@$branch['ifsc_code']}}

For, {{@$branch['name']}}

Authorised Signatory

@endforeach