| Phone | : | {{ $setting->first(function($item){ return $item->name == "phone"; })->value }} |
| : | {{ $setting->first(function($item){ return $item->name == "email"; })->value }} | |
| Website | : | {{ $setting->first(function($item){ return $item->name == 'website'; })->value }} |
| Kode # | {{ $poSupplier->code }} |
| Date | {{ now()->parse($poSupplier->date)->format("d/m/Y") }} |
| Discount Type | {{ $poSupplier->discount_type }} |
| No | Qty | Item | Kode Item | price IDR | Discount @if($poSupplier->discount_type == "NOMINAL") (*Rp) @else (%) @endif | PPN | Total |
| {{ $no++ }} | {{ number_format($item->quantity ?? 0,2,',','.') }} ( {{ $item->product ? $item->product->purchase_unit : "-"}} ) | {{ $item->product ? $item->product->name ?? "-" : "-" }} | {{ $item->product ? $item->product->code ?? "-" : "-" }} | {{ number_format($item->price ?? 0,2,',','.') }} | {{ number_format($item->discount ?? 0,2,',','.') }} | {{ number_format($item->tax ?? 0,2,',','.') }} | {{ number_format($item->amount ?? 0,2,',','.') }} |
| Total | {{ number_format($poSupplier->total ?? 0,2,',','.') }} | |
| Discount @if($poSupplier->discount_type == "NOMINAL") *Rp @else % @endif | {{ number_format($poSupplier->discount ?? 0,2,',','.') }} | |
| Total stl discount | {{ number_format(ceil(floatval($poSupplier->total) - floatval($poSupplier->discount))?? 0,2,',','.') }} | |
| Total stl discount | {{ number_format(ceil(floatval($poSupplier->total) - (floatval($poSupplier->total)) * (floatval($poSupplier->discount) / 100.00)) ?? 0,2,',','.') }} | |
| Grand Total | {{ number_format($poSupplier->grand_total ?? 0,2,',','.') }} |