@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 Inovice

logo

Billed By

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

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

Phone : {{ @$branch['contact_no'] }}

Email : {{@$branch_email}}

PAN No. : {{ @$branch['pancard'] }}

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

Invoice Details

Invoice Date : {{ date('d/m/Y', strtotime($bill->created_at)) }}
From Date : {{ date('d/m/Y', strtotime($bill->start_date)) }}
Date To : {{ date('d/m/Y', strtotime($bill->end_last)) }}
Invoice No. : {{ $bill->billno }}
SAC Code : {{ $branch->sac_code }}
Description Of Services : Courier Services

Billed To

{{$bill->name}}

Code :

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

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

State Code: {{ @$bill->gstno ? substr(@$bill->gstno, 0, 2) : '' }}

Summary of Charges

@if($roundValue > 0 && $roundValue <= 0.50) @endif
Invoice Amount : {{ Laracore::showPrice($billAmount) }}
Fuel Surcharges ({{$bill->fchpercent}}%) : {{ Laracore::showPrice($fuelAmount) }}
Development Charge : 0.00
Discount : {{Laracore::showPrice($parcels[0]->total_amount - $bill->amount)}}
Taxable value {{ Laracore::showPrice($billAmount + $fuelAmount) }}
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 Invoice Value (INR) {{ Laracore::showPrice($finalGrandTotal) }}

Amount in words (Rounded Off): {{ getIndianCurrency($finalGrandTotal) }}

Terms & Conditions

@php $termsAndConditionsArr = explode("\n", str_replace("\r", "", @$branch['bill_terms_and_conditions'])); @endphp @foreach($termsAndConditionsArr as $termsAndConditions) {{$termsAndConditions}}
@endforeach

Payment Details

Payment QR Code
Payment QR Code
Account No. : {{ $branch->bank_acno }}
IFSC Code : {{ $branch->ifsc_code }}
Branch Name : {{ $branch->bank_address }}
@if (count($all_parcels) > 0) @php $srno = 1; $total_amount = 0; @endphp @foreach ($all_parcels as $parcels) @php $total_amount += $parcels->net_amt; $srno++; @endphp @endforeach @endif
{{$bill->name}} . ({{@$branch['city']}}) GST No. {{ @$branch['gstno'] }}

SNO.

DATE

AWB No.

Dest

Mode

PCS

Weight

Amount

{{ $srno }}

{{ date('d/m/Y', strtotime(@$parcels->date)) }}

{{ $parcels->consignment_no }}

{{ $parcels->city_name }}

{{ $parcels->dp_name }}

{{ $parcels->number_of_box }}

{{ $parcels->weight }} {{ strtoupper(@$parcels->weight_type) }}

{{ Laracore::showPrice($parcels->net_amt) }}

Grand Total

{{ Laracore::showPrice($total_amount) }}

@endforeach