@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

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

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

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

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

Tax Invoice

Name: {{$bill->name}}

GTS Number:

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

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

Pan no:

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

Bill No:

{{$bill->billno}}

Bill Date:

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

A/c GST Number: {{@$bill->gstno}}

Bill Duration:

{{strtoupper(date("d/m/Y", strtotime($bill->start_date)))}} To {{strtoupper(date("d/m/Y", strtotime($bill->end_last)))}}

@if(count($parcels_data) > 0) @php $total_booking_amount = $parcel_fuel_amount = 0; @endphp @foreach($parcels_data as $parcel) @php $total_booking_amount = $total_booking_amount + $parcel['net_amt'] - $parcel['fuel']; $parcel_fuel_amount = $parcel_fuel_amount + $parcel['fuel']; @endphp @endforeach
Date Receiver Destination Cons. No. Remark Weight Amout
{{date("d/m/y", strtotime(@$parcel['date']))}} {{@$parcel['receiver']}} {{@$parcel['center']}} {{@$parcel['cons_no']}} {{@$parcel['remakrs']}} {{@$parcel['weight']}} @if($parcel['number_of_box'] != null) ({{$parcel['number_of_box']}} Box) @endif {{Laracore::showPrice($parcel['net_amt'] - $parcel['fuel'])}}
@endif @if($value == 'Positive') @endif @if($bill->igstpercent > 0) @endif @if($roundValue > 0 && $roundValue <= 0.50) @endif
Gross Amount: {{Laracore::showPrice($total_booking_amount)}}
Discount: {{Laracore::showPrice($parcels[0]->total_amount - $bill->amount)}}
Fuel Surcharge: {{Laracore::showPrice($parcel_fuel_amount)}}
Net Taxable Amount: {{Laracore::showPrice($bill->amount)}}
SGST / UT.GST Tax: {{$bill->sgstpercent}}% {{Laracore::showPrice(($totAmount * $bill->sgstpercent)/100)}}
CGST Tax: {{$bill->cgstpercent}}% {{Laracore::showPrice(($totAmount * $bill->cgstpercent)/100)}}
IGST Tax: {{$bill->igstpercent}}% {{Laracore::showPrice(($totAmount * $bill->igstpercent)/100)}}
Round Of: {{Laracore::showPrice($roundValue)}}
Bill Amount: {{ Laracore::showPrice($finalGrandTotal) }}
Rupees: {{ getIndianCurrency($finalGrandTotal) }}
SAC Code: 996812 -- Type of Service: Courier Services For, {{@$branch['name']}}
Remark :
Please Make Payment in favour of
{{@$branch['name']}} Authorised Signature
@if($branch['bill_terms_and_conditions'] != '')
Terms and Conditions
    @php $termsAndConditionsArr = explode("\n", str_replace("\r", "", @$branch['bill_terms_and_conditions'])); @endphp @foreach($termsAndConditionsArr as $termsAndConditions)
  • {{$termsAndConditions}}
  • @endforeach
@endif
@endforeach