@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 @if($digital_signature == 1) @elseif($digital_signature == 2 && $branch['stamp'] != '') @else @endif @if($branch['bill_terms_and_conditions'] != '') @endif
logo

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

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

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

EMAIL : {{@$branch_email}}

{{--

WEB: {{@$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: {{-- @php $generator = new \Picqer\Barcode\BarcodeGeneratorPNG(); @endphp --}} {{-- barcode --}}

{{$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 Consignment No Type Weight Charges
Booking Date : {{date("d-M-Y", strtotime(@$parcel['date']))}}
{{@$parcel['receiver']}} {{@$parcel['center']}} {{@$parcel['remakrs']}} {{@$parcel['cons_no']}} {{@$parcel['dp_name']}} {{@$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
@if(isset($branch['msme_no']) && $branch['msme_no'] != '') @endif
bank details
Bank Name {{@$branch['bank_address']}}
Account No {{@$branch['bank_acno']}}
IFSC Code {{@$branch['ifsc_code']}}
MICRCode {{@$branch['micr_code']}}
MSME No {{$branch['msme_no']}}

Total Consignments : {{count($all_parcels)}}

Abbreviations

PA : Parcel By Air

ES : Express Service

PC : Parcel By Surface

D : Document

@if($value == 'Positive') @endif @if($bill->igstpercent > 0) @endif
Gross total: {{Laracore::showPrice($total_booking_amount)}}
Discount - {{Laracore::showPrice($parcels[0]->total_amount - $bill->amount)}}
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)}}
IGST: {{$bill->igstpercent}}% {{Laracore::showPrice(($totAmount * $bill->igstpercent)/100)}}
Amount In Words : {{ getIndianCurrency($finalGrandTotal) }}.

Net Amount:

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

Please Make Payments in favor of {{@$branch['name']}} @if($digital_signature != 1) FOR, {{@$branch['name']}} @endif
@if(@$branch['payment_qr_code']) Payment code @endif

Digitally signed by {{strtoupper(@$branch['name'])}}

Date:{{date("d/m/Y", strtotime($bill->created_at))}}
Location:{{@$branch['city']}}
@if(@$branch['payment_qr_code']) Payment code @endif Stamp
@if(@$branch['payment_qr_code']) Payment code @endif
Authorized Signature
 

Terms and Conditions

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