@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; $totalAmount = isset($parcels[0]) ? $parcels[0]->total_amount : 0; $grandAlount = $bill->grandtotal; $final_value = number_format((double)($totalAmount - $bill->amount), 2); if ($final_value > 0) { $value = 'Positive'; } else { $value = 'Negative'; } @endphp
M/S. {{@$branch['name']}}

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

Phone : {{@$branch['contact_no']}}
GST Number : {{@$branch['gstno']}}

INVOICE

: {{@$branch['gstno']}}
: {{$bill->billno}}
: {{date("d/m/Y", strtotime($bill->created_at))}}

: 996812
: {{strtoupper(date("d/m/Y", strtotime($bill->start_date)))}}
: {{strtoupper(date("d/m/Y", strtotime($bill->end_last)))}}
: M/S. {{$bill->name}}

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

GST Number : {{@$bill->gstno}}
@if(count($all_parcels) > 0) @php $srno = 1; $total_weight = $total_booking_amount = 0; @endphp @foreach($all_parcels as $parcels) @php $srno++; $total_weight = $total_weight+ @$parcels->weight; $total_booking_amount = $total_booking_amount+ @$parcels->net_amt; @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}} {{@$parcels->consignment_no}} {{date("d/m/Y", strtotime(@$parcels->date))}} {{@$parcels->city_name}} {{@$parcels->weight}} {{Laracore::showPrice(@$parcels->net_amt)}}
TOTAL {{$total_weight}} {{Laracore::showPrice($total_booking_amount)}}
TOTAL {{Laracore::showPrice($bill->amount)}}
Discount - {{ Laracore::showPrice($totalAmount - $bill->amount) }}
Fuel Surcharge {{Laracore::showPrice(($bill->amount * $bill->fchpercent)/100)}}
Sub Total {{Laracore::showPrice($totAmount)}}
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