@component('pdf.components.style') @endcomponent @component('pdf.components.header', [ 'company_logo' => $company_logo, 'sales_person' => [ 'name' => $quote->another_user->fullname, 'email' => $quote->another_user->email, 'phone_number' => $quote->another_user->show_phone_invoice == 1 ? $quote->another_user->phone_number : null, 'extension_number' => $quote->another_user->extension_number ], 'store' => [ 'name' => $quote->store->store_name, 'format_store_name' => $quote->store->format_store_name, 'address' => $quote->store->store_address, 'phone_number' => $quote->store->store_phone_number, ], 'order_no' => $quote->quote_no, 'order_date' => $quote->quote_date . ' ' . $quote->quote_time, 'show_expiration_date' => $quote->show_expiration_date, 'expirate_date' => $quote->valid_quote_date, 'total' => $quote->total, 'is_quote' => true, 'payment' => $payment ]) @endcomponent @if (!$itemize) @component('pdf.components.information_section', [ // 'sales_person' => ['name' => $quote->user->fullname, 'email' => $quote->user->email], 'billing' => [ 'company_name' => $quote->company_name, 'builders_code' => $quote->builders_code, 'name' => $quote->bill_name, 'email' => $quote->bill_email, 'address' => $quote->formatted_billing_address ? $quote->formatted_billing_address['formatted']:$quote->bill_address, 'phone_number' => $quote->bill_phone_number, 'home_number' => $quote->bill_home_number, 'alternative_number' => $quote->bill_alternative_number == null?"":$quote->bill_alternative_number ], 'shipping' => [ 'company_name' => $quote->ship_company_name, 'builders_code' => $quote->ship_builders_code, 'name' => $quote->ship_name, 'email' => $quote->ship_email, 'address' => $quote->formatted_shipping_address ? $quote->formatted_shipping_address['formatted']:$quote->ship_address, 'phone_number' => $quote->ship_phone_number, 'home_number' => $quote->ship_home_number, 'alternative_number' => $quote->ship_alternative_number == null?"":$quote->ship_alternative_number ] ]) @endcomponent @endif @if ($itemize) @component('pdf.components.product_itemize', [ 'order_detail' => $quote->detail, 'order' => $quote, 'name' => $name, 'type' => 'quote', 'without_model_number' => false, 'company' => $company, "name" => $name ]) @endcomponent @else @component('pdf.components.product', [ 'order_detail' => $quote->detail, 'order' => $quote, 'name' => $name, 'type' => 'quote', 'without_model_number' => false, 'company' => $company, "name" => $name ]) @endcomponent @endif @if($name !== "quote-without-price-") @endif
@if (!$itemize) @component('pdf.components.notes', ['notes' => $quote->notes, 'delivery_notes' => $quote->delivery_notes, 'line_item_notes' => $quote->line_item_notes]) @endcomponent @endif @if ($itemize) @component('pdf.components.footer_itemize', [ 'order' => $quote, 'order_detail' => $quote->detail, 'type' => 'quote', 'change_due' => $change_due, 'type' => 'quote', 'return_payment' => [], 'is_credit_line' => false, 'credit_line_balance_due' => 0, ]) @endcomponent @else @component('pdf.components.footer', [ 'order' => $quote, 'order_detail' => $quote->detail, 'type' => 'quote', 'change_due' => $change_due, 'type' => 'quote', 'return_payment' => [], 'is_credit_line' => false, 'credit_line_balance_due' => 0, ]) @endcomponent @endif
{{-- @component('pdf.components.footer', [ 'order' => $quote, 'order_detail' => $quote->detail, 'type' => 'quote', 'change_due' => $change_due, 'type' => 'quote' ]) @endcomponent --}} {{-- @component('pdf.components.notes', ['notes' => $quote->notes]) @endcomponent --}} @component('pdf.components.spec', ['order_detail' => $quote->detail]) @endcomponent @if (!$itemize) @component('pdf.components.page', ['order_no' => $quote->quote_no, 'order' => $quote, 'type' => 'QUOTE', 'payment' => $payment, 'company' => $company, 'notes' => $quote->notes, 'delivery_notes' => $quote->delivery_notes]) @endcomponent @endif {{-- @foreach ($quote->detail as $row)

SPEC PRODUCT DETAIL

PRODUCT : {{ $row->product_name }}

MODEL : {{ $row->product_model }}


@foreach ($row->product_spec as $prod_spec) @if ($prod_spec->brand == $row->product_brand)

{{ $prod_spec->definition }}

@foreach ($row->product_spec as $val) @if ($product_spec->definition == 'FEATURES') @else @endif @endforeach
{{ $val->display_name }}
{{ $val->display_name }} {{ $val->value }} {{ $val->uom }}
@endif @endforeach @endforeach --}}