@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; } $billAmount = $bill->amount; $serviceChAmount = ($billAmount * $bill->service_charge_percent)/100; $amountAndService = $billAmount + $serviceChAmount; $fuelAmount = ($amountAndService * $bill->fchpercent)/100; $otherChAmount = $bill->other_charge; $totAmount = $amountAndService + $fuelAmount + $otherChAmount; @endphp
TAX INVOICE

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

{{@$branch['address']}}, {{@$branch['city']}}
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))}}

@php $srno = 1; $amountColsValue = 0; $total_parcel_amount = $total_ins = $total_fuel = $total_booking_amount = 0; @endphp @foreach($datas as $parcel)
@endforeach @if($value == 'Positive') @endif @if($roundValue > 0 && $roundValue <= 0.50) @endif
Sr Receiver Center Date Cons_No Remark Carrier Weight Amount Insur. Fuel Charge Charges
{{(@$parcels['center'] != '') ? $srno :''}} {{@$parcel['receiver']}} {{@$parcel['center']}} {{(@$parcel['date'] != '') ? date("d/m/Y", strtotime(@$parcel['date'])) :''}} {{@$parcel['cons_no']}} {{@$parcel['remakrs']}} {{@$parcel['carrier']}} {{@$parcel['weight']}} {{strtoupper(@$parcel['weight_type'])}} {{@$parcel['parcel_amount']}} {{@$parcel['insurance']}} {{number_format((float)@$parcel['fuel_amount'],2)}} {{(@$parcel['fuel_percentage'] > 0) ? ('('.number_format($parcel['fuel_percentage'],2).'%)') : ''}} {{Laracore::showPrice(@$parcel['amount'])}}
Amount {{Laracore::showPrice($total_parcel_amount)}} {{Laracore::showPrice($total_ins)}} {{Laracore::showPrice($total_fuel)}} {{Laracore::showPrice($total_booking_amount)}}
Discount - {{Laracore::showPrice($parcels[0]->total_amount - $bill->amount)}}
Service .Ch. % ({{$bill->service_charge_percent}}) {{Laracore::showPrice($serviceChAmount)}}
Other Ch. {{Laracore::showPrice($bill->other_charge)}}
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']}}
MICR CODE-{{@$branch['micr_code']}}
HSN/SAC CODE - {{@$branch['sac_code']}}
Pan Card No.-{{@$branch['pancard']}}
Mo. {{@$branch['contact_no']}}
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($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
@endforeach