{{-- 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; $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

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']}}
@if(count($all_parcels) > 0) @php $previousDate = ''; $skipDate = false; @endphp @foreach($all_parcels as $key => $parcels) @php $checkDate = strtotime(@$parcels->date); if ($previousDate != '' && $previousDate == $checkDate) { $skipDate = true; } else { $skipDate = false; $previousDate = $checkDate; } @endphp @if($skipDate == false) @endif @endforeach
Name of Consignee Destination Remarks Ref. No Type Consignment No Weight Charges
Booking Date : {{date("d-M-Y", strtotime(@$parcels->date))}}
{{@$parcels->receiver_name}} {{@$parcels->city_name}} {{@$parcels->remakrs}} {{@$parcels->dp_name}} {{@$parcels->consignment_no}} {{@$parcels->weight}} {{strtoupper(@$parcels->weight_type)}} @if($parcels->number_of_box != null)
({{$parcels->number_of_box}} Box)
@endif
{{Laracore::showPrice(@$parcels->net_amt)}}
@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($all_parcels)}}
Abbreviations
  • PA :
    Parcel By Air
  • ES :
    Express Service
  • PC :
    Parcel By Surface
  • D :
    Document
Amount in Words: {{ getIndianCurrency($finalGrandTotal) }}.
  • Gross Total :
    {{Laracore::showPrice($bill->amount)}}
  • @if($value == 'Positive')
  • Discount :
    - {{ Laracore::showPrice($totalAmount - $bill->amount) }}
  • @endif
  • Fuel Charges :
    {{Laracore::showPrice(($bill->amount * $bill->fchpercent)/100)}}
  • Total Taxable Value :
    {{Laracore::showPrice($totAmount)}}
  • 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