@endif
@if (isset($customer)) Dealer : @if (isset($customer->company_name) && $customer->company_name != '') {{ $customer->company_name ?? '' }}
@endif
@if (isset($business_address->address_line_1) && $business_address->address_line_1 != '') {{ $business_address->address_line_1 ?? '' }}, @endif @if (isset($business_address->address_line_2) && $business_address->address_line_2 != '') {{ $business_address->address_line_2 ?? '' }},
@endif @if (isset($business_address->city_name) && $business_address->city_name != '') {{ $business_address->city_name ?? '' }}. @endif
@if (isset($invoice->rep)) {{-- @if (!empty($invoice->rep->telephone)) --}} {{-- @endif --}} @endif
Invoice # : {{ $invoice->invoice_code ?? '' }}
Date & Time : {{ Carbon\Carbon::parse($invoice->invoice_date)->format('Y-m-d') ?? '' }}
Rep. : {{ $invoice->rep->fname ?? '' }}
Phone : {{ $invoice->rep->lname ?? '' }}
Remarks : @if (isset($invoice->remarks) && $invoice->remarks != '')
{!! $invoice->remarks !!}
@endif
{{-- --}} @php $count = $invoiceproducts->count(); @endphp @foreach ($invoiceproducts as $key=>$product) {{-- --}} {{-- --}} @endforeach @for ($count ;$count<10;$count++) @endfor
Description Qty Unit PriceSub TotalDISC% Net Value
{{ $product->product->stock_id }}{{ $product->product->item_code }} {!! html_entity_decode($product->description, ENT_QUOTES) !!} {{ $product->qty }} {{ \App\Http\Helper::formatPrice($product->unit_price) }} {{ \App\Http\Helper::formatPrice($product->qty * $product->unit_price) }} @if ($product->discount != '' && $product->discount != 0) @if ($product->discount_type == 'P') {{ $product->discount }} % @else {{ \App\Http\Helper::formatPrice($product->discount) }} @endif @else 0.00 @endif {{ \App\Http\Helper::formatPrice($product->sub_total) }}

@if ($invoice->discount != '' && $invoice->discount != 0) @if ($invoice->discount_type == 'P') @else @endif @endif
Gross Amount {{ \App\Http\Helper::formatPrice($invoice->sub_total) }}
Discount {{ $invoice->discount }}% {{ \App\Http\Helper::formatPrice($invoice->discount) }}
Total Amount {{ \App\Http\Helper::formatPrice($invoice->total) }}