@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->grand_total; $roundValue = $bill->rounding_amount; } else { $grandAmount = $bill->grand_total; $ceilAmount = ceil($grandAmount); $floorAmount = floor($grandAmount); $roundValue = $ceilAmount - $grandAmount; $finalGrandTotal = ($roundValue > 0 && $roundValue <= 0.50) ? $ceilAmount : $floorAmount; } } else { $finalGrandTotal = $isNewBill ? $bill->grand_total - $bill->rounding_amount : $bill->grand_total; $roundValue = 0; } $billAmount = $bill->amount; $fuelChAmount = ($billAmount * $bill->fchpercent)/100; $amountAndFuel = $billAmount + $fuelChAmount; $totAmount = $amountAndFuel; @endphp
DEBIT MEMO / CASH MEMO
TAX INVOICE
ORIGINAL / DUPLICATE / TRIPLICATE

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

{{@$branch['address']}}, {{@$branch['city']}} - {{@$branch['zipcode']}}
Monthly Bill / {{date("M Y", strtotime($bill->start_date))}}

M/s. {{$bill->name}}

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

Phone {{@$bill->phone1}}

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

Bill No. {{$bill->bill_no}}

Date. {{date("d/m/Y", strtotime($bill->created_at))}}

@if($value == 'Positive') @else @endif @if($value == 'Positive') {{-- @else --}} @endif @if($roundValue > 0 && $roundValue <= 0.50) @endif
PARTICULAR AMOUNT
FREIGHT CHARGES FOR THE MONTH OF {{date("M Y", strtotime($bill->start_date))}} {{Laracore::showPrice($parcels[0]->total_amount)}}
FREIGHT CHARGES FOR THE MONTH OF {{date("M Y", strtotime($bill->start_date))}} {{Laracore::showPrice($parcels[0]->total_amount + abs($parcels[0]->total_amount - $bill->amount))}}
DISCOUNT - {{Laracore::showPrice($parcels[0]->total_amount - $bill->amount)}}
DISCOUNT --
Fuel Ch. % ({{$bill->fchpercent}}) {{Laracore::showPrice(($billAmount * $bill->fchpercent)/100)}}
CGST % ({{$bill->cgstpercent}}) {{Laracore::showPrice(($totAmount * $bill->cgstpercent)/100)}}
SGST / UTGST % ({{$bill->sgstpercent}}) {{Laracore::showPrice(($totAmount * $bill->sgstpercent)/100)}}
IGST % ({{$bill->igstpercent}}) {{Laracore::showPrice(($totAmount * $bill->igstpercent)/100)}}
Round Of {{Laracore::showPrice($roundValue)}}
GRAND TOTAL {{ Laracore::showPrice($finalGrandTotal) }}

(Rupees in words) {{ getIndianCurrency($finalGrandTotal) }}

GST No.- {{@$branch['gstno']}}
{{@$branch['bank_address']}}
A/C. No. - {{@$branch['bank_acno']}}
IFSC CODE - {{@$branch['ifsc_code']}}
MICR CODE-{{@$branch['micr_code']}}
HSN/SAC CODE - {{@$branch['sac_code']}}
Pan Card No.-{{@$branch['pancard']}}
Mo. {{@$branch['contact_no']}}
@if($branch['bill_terms_and_conditions'] != '')

@php $termsAndConditionsArr = explode("\n", str_replace("\r", "", @$branch['bill_terms_and_conditions'])); $lineCount = 1; @endphp @foreach($termsAndConditionsArr as $termsAndConditions) @if($lineCount <= 5) {{$termsAndConditions}}
@php $lineCount++; @endphp @endif @endforeach

@else
PLEASE MAKE PAYMENT BY A/c. PAYEE CHEQUE IN FAVOR OF {{strtoupper(@$branch['name'])}}
PLEASE MAKE PAYMENT BY AMOUNT DUE ON 1 TO 5 DAYS
@endif
@if($branch['payment_qr_code'])

Payment QR Code

Stamp
@endif
@if($digital_signature == 1) Digitally signed by {{strtoupper(@$branch['name'])}}
Date:{{date("d/m/Y", strtotime($bill->created_at))}}
Location:{{@$branch['city']}}
@elseif($digital_signature == 2 && $branch['stamp'] != '')

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

Stamp
@else

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

Autho / Sign.
@endif
@endforeach @if(count($all_parcels) > 0) @foreach($bills as $bill)
Bill Detail / {{date("M Y", strtotime($bill->start_date))}}
@php $srno = 1; $amountColsValue = 0; $total_parcel_amount = $total_ins = $total_fuel = 0; @endphp @foreach($datas as $parcels)
@endforeach @if($bill->service_charge_percent) @endif @if($bill->other_charge) @endif @if($roundValue > 0 && $roundValue <= 0.50) @endif
Sr Receiver Origin Destination Date Cons_No Remark Carrier Weight Amount Charges
{{(@$parcels['center'] != '') ? $srno :''}} {{@$parcels['receiver']}} {{@$parcels['origin']}} {{@$parcels['center']}} {{(@$parcels['date'] != '') ? date("d/m/Y", strtotime(@$parcels['date'])) :''}} {{@$parcels['cons_no']}} @if(@$parcels['reference_number'] != null)
(Ref: {{$parcels['reference_number']}})
@endif
{{@$parcels['remarks']}} {{@$parcels['carrier']}} {{@$parcels['weight']}} {{strtoupper(@$parcels['weight_type'])}} @if(@$parcels['number_of_box'] != null)
({{$parcels['number_of_box']}} Box)
@endif
{{@$parcels['parcel_amount']}} {{Laracore::showPrice(@$parcels['amount'])}}
Amount {{Laracore::showPrice($total_parcel_amount)}} {{Laracore::showPrice($bill->amount)}}
Service .Ch. % ({{$bill->service_charge_percent}}) {{Laracore::showPrice($serviceChAmount)}}
Other Ch. {{Laracore::showPrice($bill->other_charge)}}
Fuel Ch. % ({{$bill->fchpercent}}) {{Laracore::showPrice(($billAmount * $bill->fchpercent)/100)}}
CGST % ({{$bill->cgstpercent}}) {{Laracore::showPrice(($totAmount * $bill->cgstpercent)/100)}}
SGST / UTGST % ({{$bill->sgstpercent}}) {{Laracore::showPrice(($totAmount * $bill->sgstpercent)/100)}}
IGST % ({{$bill->igstpercent}}) {{Laracore::showPrice(($totAmount * $bill->igstpercent)/100)}}
Round Of {{Laracore::showPrice($roundValue)}}
GRAND TOTAL {{ Laracore::showPrice($finalGrandTotal) }}

(Rupees in words) {{ getIndianCurrency($finalGrandTotal) }}

@if($digital_signature == 1) Digitally signed by {{strtoupper(@$branch['name'])}}
Date:{{date("d/m/Y", strtotime($bill->created_at))}}
Location:{{@$branch['city']}}
@elseif($digital_signature == 2 && $branch['stamp'] != '')

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

Stamp
@else

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

Autho / Sign.
@endif
@endforeach @endif

In case of any query, feel free to contact us at

{{@$branch['name']}}
{{@$branch['address']}},
{{@$branch['city']}}
+91-{{@$branch['contact_no']}}

This is system generated invoice signature not required.