{{-- Nandan Invoice HTML --}} @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

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

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

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

EMAIL : {{@$branch_email}}

Place of Service:

{{$bill->name}}

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

GSTIN :
{{@$bill->gstno}}
State Code :
{{ (@$bill->gstno) ? substr(@$bill->gstno,0,2) : '' }}
TAX INVOICE
Original for recipient
INVOICE NO. : {{$bill->billno}}
Invoice Date :
{{date("d-M-y", strtotime($bill->created_at))}}
Duration :
{{strtoupper(date("d-M-y", strtotime($bill->start_date)))}} ~ {{strtoupper(date("d-M-y", strtotime($bill->end_last)))}}
GSTIN :
{{@$branch['gstno']}}
State Code :
{{ (@$branch['gstno']) ? substr(@$branch['gstno'],0,2) : '' }}
SAC :
996812
P.A.N. :
{{@$branch['pancard']}}
@php $total_booking_amount = $parcel_fuel_amount = 0; @endphp @if(count($parcels_data) > 0) @php $previousDate = ''; $skipDate = false; @endphp @foreach($parcels_data as $key => $parcel) @php $checkDate = strtotime(@$parcel['date']); if ($previousDate != '' && $previousDate == $checkDate) { $skipDate = true; } else { $skipDate = false; $previousDate = $checkDate; } @endphp @if($skipDate == false) @endif @php $total_booking_amount = $total_booking_amount + $parcel['net_amt'] - $parcel['fuel']; $parcel_fuel_amount = $parcel_fuel_amount + $parcel['fuel']; @endphp @endforeach
Name of Consignee Destination Remarks Ref. No Type Consignment No Weight Charges
Booking Date : {{date("d-M-Y", strtotime(@$parcel['date']))}}
{{@$parcel['receiver']}} {{@$parcel['center']}} {{@$parcel['remakrs']}} {{@$parcel['dp_name']}} {{@$parcel['cons_no']}} {{@$parcel['weight']}} {{strtoupper(@$parcel['weight_type'])}} @if(@$parcel['number_of_box'] != null)
({{$parcel['number_of_box']}} Box)
@endif
{{Laracore::showPrice($parcel['net_amt'] - $parcel['fuel'])}}
@endif
BANK DETAILS
  • Bank Name :
    {{@$branch['bank_address']}}
  • Account No :
    {{@$branch['bank_acno']}}
  • IFSCode :
    {{@$branch['ifsc_code']}}
  • MICRCode :
    {{@$branch['micr_code']}}
  • @if(isset($branch['msme_no']) && $branch['msme_no'] != '')
  • MSME No :
    {{@$branch['msme_no']}}
  • @endif
Total Consignments: {{count($parcels_data)}}
Abbreviations
  • PA :
    Parcel By Air
  • ES :
    Express Service
  • PC :
    Parcel By Surface
  • D :
    Document
Amount in Words: {{ getIndianCurrency($finalGrandTotal) }}.
  • Gross Total :
    {{Laracore::showPrice($total_booking_amount)}}
  • @if($value == 'Positive')
  • Discount :
    - {{Laracore::showPrice($parcels[0]->total_amount - $bill->amount)}}
  • @endif
  • Fuel Charges :
    {{Laracore::showPrice($parcel_fuel_amount)}}
  • Total Taxable Value :
    {{Laracore::showPrice($bill->amount)}}
  • CGST: ({{$bill->cgstpercent}}) %
    {{Laracore::showPrice(($totAmount * $bill->cgstpercent)/100)}}
  • SGST: ({{$bill->sgstpercent}}) %
    {{Laracore::showPrice(($totAmount * $bill->sgstpercent)/100)}}
  • @if($bill->igstpercent > 0)
  • IGST: ({{$bill->igstpercent}}) %
    {{Laracore::showPrice(($totAmount * $bill->igstpercent)/100)}}
  • @endif
  • Net Amount :
    {{ Laracore::showPrice($finalGrandTotal) }}
@if($branch['bill_terms_and_conditions'] != '') @endif
@endforeach