@php use App\Facades\LaraCore; @endphp @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($branch['bill_terms_and_conditions'] != '') @endif

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

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

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

--- SAC Code: 996812 ---

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

ESTIMATION

{{$bill->name}}

Bill Period: {{date("d/m/Y", strtotime($bill->start_date))}} TO {{date("d/m/Y", strtotime($bill->end_last))}}

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

Bill Date: {{date("d/m/Y", strtotime($bill->created_at))}}
Bill No.: {{$bill->billno}}
@php $previousDate = ''; $skipDate = false; @endphp @foreach($all_parcels as $key => $parcel) @php $checkDate = strtotime(@$parcel->date); if ($previousDate != '' && $previousDate == $checkDate) { $skipDate = true; } else { $skipDate = false; $previousDate = $checkDate; } @endphp @if ($skipDate == false) @endif @endforeach
Consignee's Name Doc No Center D/P Weight Amount
{{ date('d/m/y', strtotime($parcel->date)) }}          
{{@$parcel->receiver_name}} {{@$parcel->consignment_no}} {{@$parcel->city_name}} {{@$parcel->dp_name}} {{@$parcel->weight}} @if($parcel->number_of_box != null) ({{$parcel->number_of_box}} Box) @endif {{Laracore::showPrice(@$parcel->net_amt)}}
@if($value == 'Positive') @endif @if($roundValue > 0 && $roundValue <= 0.50) @endif
Gross Amount: {{Laracore::showPrice($parcels[0]->total_amount)}}
Discount : - {{Laracore::showPrice($parcels[0]->total_amount - $bill->amount)}}
Fuel SurCharge : {{$bill->fchpercent}}% {{Laracore::showPrice($fuelAmount)}}
Net Taxable Amount : {{Laracore::showPrice($totAmount)}}
Round Off {{Laracore::showPrice($roundValue)}}
Bill Amount : {{ Laracore::showPrice($finalGrandTotal) }}
Rupees in words : {{ getIndianCurrency($finalGrandTotal) }}
Remark :
{{ @$branch['bank_address'] }}
A/C. No:{{ @$branch['bank_acno'] }}
IFSC CODE:{{ @$branch['ifsc_code'] }}
MSME No.:{{ @$branch['msme_no'] }}
Cheque will be issued in the name of
{{ strtoupper(@$branch['name']) }}
@if($digital_signature == 1)

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


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
 
 
Terms and Conditions
    @php $termsAndConditionsArr = explode("\n", str_replace("\r", "", @$branch['bill_terms_and_conditions'])); @endphp @foreach($termsAndConditionsArr as $termsAndConditions)
  • {{$termsAndConditions}}
  • @endforeach
@endforeach