@php $branch = $addedQuote->branch ?? null; $company = $branch->company ?? null; $companyName = $company->name ?? ''; $companyAddress = $company->address ?? ''; $companyPhone = $company->phone ?? ''; $companyEmail = $company->email ?? ''; $gstNo = $branch->gst_no ?? ''; $clientName = $addedQuote->client->user->name ?? ''; $clientAddress = $addedQuote->client->address ?? optional(optional($addedQuote->order)->clientAddress)->address ?? optional(optional($addedQuote->client)->user)->location ?? ''; @endphp
{{-- --}} Back
{{--
(QUOTATION)
--}}
{{ strtoupper($companyName) }}
Materials Quotation
@if($companyPhone)
Contact No: {{ $companyPhone }}
@endif
To: {{ $clientName }}
Address: {{ $clientAddress }}
Quote No: {{ $addedQuote->quote_id ?? '' }}
Quote Date: {{ $addedQuote->quote_date ? \Carbon\Carbon::parse($addedQuote->quote_date)->format('d-m-Y') : '' }}
@php $subtotal = 0; $pageSubtotal = 0; $pageCount = 0; @endphp @foreach ($addedQuote->quotesItem as $index => $product) @php $total = $product->total ?? 0; $subtotal += $total; $pageSubtotal += $total; @endphp @if (($index + 1) % 18 == 0)
S.No Description HSN Code Qty Rate Total
{{ $index + 1 }} {{ $settings->native_name_flag == 'A' ? ($product->product->native_name ?? $product->product_name) : ($product->product_name ?? '') }} {{ $product->product->hsn_code ?? '' }} {{ $product->quantity ?? '' }} {{ $product->product->category->unitOfMass->name ?? '' }} {{ number_format($product->price ?? 0, 2) }} {{ number_format($total, 2) }}
Subtotal: ₹ {{ number_format($pageSubtotal, 2) }}
Previous Page Subtotal: ₹ {{ number_format($subtotal - $pageSubtotal, 2) }}
Total: ₹ {{ number_format($subtotal, 2) }}

...Continue

{{ strtoupper($companyName) }}
Products Quotation
@if($companyPhone)
Contact No: {{ $companyPhone }}
@endif
To: {{ $clientName }}
Address: {{ $clientAddress }}
Quote No: {{ $addedQuote->quote_id ?? '' }}
Quote Date: {{ $addedQuote->quote_date ? \Carbon\Carbon::parse($addedQuote->quote_date)->format('d-m-Y') : '' }}
@php $pageSubtotal = 0; $pageCount++; @endphp @endif @endforeach @for ($i = count($addedQuote->quotesItem) % 18; $i < 18 && $i > 0; $i++) @endfor @if(count($addedQuote->quotesItem) <= 18) @for ($i = count($addedQuote->quotesItem); $i < 10; $i++) @endfor @endif
S.No Description HSN Code Qty Rate Total
 
 
Subtotal: ₹ {{ number_format($pageSubtotal, 2) }}
Previous Page Subtotal: ₹ {{ number_format($subtotal - $pageSubtotal, 2) }}
Total: ₹ {{ number_format($subtotal, 2) }}
@if (isset($settings->signature_flag) && $settings->signature_flag == 'A')
For {{ strtoupper($companyName) }}
Authorised Signatory
{{ $settings->company->name ?? '' }},
{{ $settings->name ?? 'Head Office' }}.
@endif