@foreach ($quotations as $quotation)

QTN

{{-- --}}
(To)

{{ $quotation->debitLedger ? $quotation->debitLedger->name : '' }}

{{ $quotation->debitLedger ? $quotation->debitLedger->address : '' }}

PH: {{ $quotation->debitLedger ? $quotation->debitLedger->mobile_no : '' }}

{{-- GST:{{ $company->gst }}       State:{{ $company->state }} --}}
Quotation No   {{ $quotation->quotation_no }}
Voucher Date  {{ \Carbon\Carbon::parse($quotation->quotation_date)->format('d M Y') }}
Sales Man  {{ $quotation->user ? $quotation->user->name : '' }}
Sub Route  {{ $quotation->debitLedger ? ($quotation->debitLedger->subRoute ? $quotation->debitLedger->subRoute->name : '' ) : '' }}
@foreach ($quotation->quotationItems as $key => $item) @endforeach @for($i=$quotation->quotationItems()->count();$i<=15;$i++) @endfor
sno Items Qty Rate Unit Amount
{{ $key + 1 }} {{ $item->stockItem->name }}{{ $item->remarks ? " ({$item->remarks})" : '' }} {{ $item->quantity }} {{ number_format($item->price_inc_tax, 2) }} {{ $item->unit->symbol }} {{ number_format( $item->total,2) }}
 
{{ $quotation->quotationItems()->sum('quantity') }} {{ number_format($quotation->quotationItems()->sum('total'),2) }}
@if($quotation->discount > 0) Discount : {{ number_format($quotation->discount, 2) }}
@endif @if($quotation->freight > 0) Freight : {{ number_format($quotation->freight, 2) }}
@endif @if($quotation->round_off > 0) Round Off : {{ number_format($quotation->round_off, 2) }}
@endif Amount : {{ number_format($quotation->amount, 2) }}
@if ($quotations->last() != $quotation)
@endif @endforeach