@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
@php $total_booking_amount = $parcel_fuel_amount = 0; @endphp @if(count($parcels_data) > 0) @endif

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

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

TAX INVOICE (ORIGINAL FOR RECIPIENT)

Consignor Details
GSTIN : {{@$bill->gstno}}
PAN No :
Place of Supply
NAME : {{$bill->name}}
ADDRESS : {{@$bill->address1.' '.@$bill->address2.' '.@$bill->city}}
State Name : {{@$bill->state}}
Tax Details
SAC - SERVICE DESCRIPTION : 996812 - COURIER SERVICE
GST NO : {{@$branch['gstno']}}
STATE - STATE CODE : {{ (@$branch['gstno']) ? substr(@$branch['gstno'],0,2) : '' }}
Bill Details
BILL NO : {{$bill->billno}}
BILL DATE : {{date("d/m/Y", strtotime($bill->created_at))}}
PERIOD : {{strtoupper(date("d/m/Y", strtotime($bill->start_date)))}} ~ {{strtoupper(date("d/m/Y", strtotime($bill->end_last)))}}
PO NO. / VENDOR CODE : - / -
@php $previousDate = ''; $skipDate = false; $dayAmountTotal = 0; $srno = 1;; @endphp @foreach($parcels_data as $parcel) @php $checkDate = strtotime(@$parcel['date']); if ($previousDate != '' && $previousDate == $checkDate) { $skipDate = true; // $dayAmountTotal = $dayAmountTotal + $parcel['net_amt']; } else { $skipDate = false; $previousDate = $checkDate; // $dayAmountTotal = $dayAmountTotal + $parcel['net_amt']; } @endphp @if($skipDate == false) @endif @php $srno++; @endphp @php $total_booking_amount = $total_booking_amount + @$parcel['net_amt'] - $parcel['fuel']; $parcel_fuel_amount = $parcel_fuel_amount + $parcel['fuel']; @endphp {{-- @if($skipDate == false) @endif --}} @endforeach
Date
No. Consignee Address Doc No. Package Type Remarks Weight Freight Charges
{{date("d/m/Y", strtotime(@$parcel['date']))}}
{{$srno}} {{@$parcel->receiver_name}} {{@$parcel['center']}} {{@$parcel['cons_no']}} {{@$parcel['dp_name']}} {{@$parcel['remakrs']}} {{@$parcel['weight']}} {{strtoupper(@$parcel['weight_type'])}} {{Laracore::showPrice(@$parcel['net_amt'])}}
Day Total : ₹ {{Laracore::showPrice($dayAmountTotal)}}
Bank Name: {{@$branch['bank_address']}}
Account No.: {{@$branch['bank_acno']}}
IFSC Code: {{@$branch['ifsc_code']}}
MICR Code: {{@$branch['micr_code']}}
@if($value == 'Positive') @endif @if($roundValue > 0 && $roundValue <= 0.50) @endif
Gross Total ++: ₹ {{Laracore::showPrice($total_booking_amount)}}
Discount: - {{Laracore::showPrice($parcels[0]->total_amount - $bill->amount)}}
Fuel Surcharge: ₹ {{Laracore::showPrice($parcel_fuel_amount)}}
Total value of supply: ₹ {{Laracore::showPrice($bill->amount)}}
{{$bill->cgstpercent}}% CGST: ₹ {{Laracore::showPrice(($totAmount * $bill->cgstpercent)/100)}}
{{$bill->sgstpercent}}% SGST/UTGST: ₹ {{Laracore::showPrice(($totAmount * $bill->sgstpercent)/100)}}
{{$bill->igstpercent}}% IGST: ₹ {{Laracore::showPrice(($totAmount * $bill->igstpercent)/100)}}
Round Off (Add): ₹ {{Laracore::showPrice($roundValue)}}
Net Amt: ₹ {{ Laracore::showPrice($finalGrandTotal) }}
@if($branch['bill_terms_and_conditions'] != '') @endif
Amount in Words : {{ getIndianCurrency($finalGrandTotal) }}
For, {{@$branch['name']}}
Please make payment in favor of {{@$branch['name']}}
Remarks: Authorized Signature
    @php $termsAndConditionsArr = explode("\n", str_replace("\r", "", @$branch['bill_terms_and_conditions'])); @endphp @foreach($termsAndConditionsArr as $termsAndConditions)
  • {{$termsAndConditions}}
  • @endforeach
@endforeach