Quote To :
{{ $quotation->customer ? $quotation->customer->address ?? '-' : '-' }}
Attention :
{{ $quotation->customer ? $quotation->customer->name ?? '-' : "-" }}
Deskripsi :
{{ $quotation->description ?? '-' }}
QUOTATION
Quote # {{ $quotation->code }}
Date {{ now()->parse($quotation->date)->format("d/m/Y") }}
Sales Rep. @if($quotation->customer) {{ $quotation->customer->seller ? $quotation->customer->seller->name ?? "-" : "-" }} @else - @endif
{{-- --}} @php $no = 1; @endphp @foreach($quotation->quotation_details as $item) {{-- --}} @endForeach
No Qty ItemKode ItemDeskripsi price IDR Total
{{ $no++ }} {{ number_format($item->quantity ?? 0,2,',','.') }} {{-- ( {{ $item->product ? $item->product->selling_unit ?? "-" : "-"}} ) --}} {{ $item->product ? $item->product->name ?? "-" : "-" }} {{ $item->product ? $item->product->code ?? "-" : "-" }} @if($item->product)
{{ $item->product->description ?? "-" }}

Disc {{ number_format($item->discount ?? 0,2,',','.') }} @if($quotation->discount_type == "NOMINAL") *Rp @else % @endif
@else - @endif
{{ number_format($item->price ?? 0,2,',','.') }} {{ number_format($item->amount ?? 0,2,',','.') }}
@if($quotation->discount > 0.00) @if($quotation->discount_type == "NOMINAL") @else @endif @endif
Total {{ number_format($quotation->total ?? 0,2,',','.') }}
Discount @if($quotation->discount_type == "NOMINAL") *Rp @else % @endif {{ number_format($quotation->discount ?? 0,2,',','.') }}
Total Stl Discount {{ number_format(ceil(floatval($quotation->total) - floatval($quotation->discount))?? 0,2,',','.') }}
Total Stl Discount {{ number_format(ceil(floatval($quotation->total) - (floatval($quotation->total)) * (floatval($quotation->discount) / 100.00)) ?? 0,2,',','.') }}
PPn {{ number_format($quotation->tax ?? 0,2,',','.') }}
Harga Stl PPn {{ number_format($quotation->grand_total ?? 0,2,',','.') }}
CONFIRMED BY
{{ $quotation->customer ? $quotation->customer->name ?? '-' : "-" }}
AUTHORIZED SIGNATURE
{{ $setting->first(function($item){ return $item->name == "signature_owner"; })->value }}