@php $org = auth()->user()->organization ?? \App\Models\System\Organization::find(auth()->user()->organization_id); $documentTitle = 'Stock Valuation Report'; @endphp @extends('documents.inventory._layout', [ 'documentTitle' => 'Stock Valuation Report', 'reference' => null, 'documentDate' => $reportDate, ]) @section('header-meta')
|
Total at Cost {{ $currency }} {{ number_format($totalCost, 0) }} |
Total at Selling {{ $currency }} {{ number_format($totalSell, 0) }} |
Total at Outlet {{ $currency }} {{ number_format($totalOutlet, 0) }} |
Discount Floor {{ $currency }} {{ number_format($totalFloor, 0) }} |
| # | Product | Lot | Qty | Cost/Unit | Total at Cost | Selling Price | Total at Selling | Margin % |
|---|---|---|---|---|---|---|---|---|
| {{ $i + 1 }} | {{ $level->product?->name ?? '—' }}
@if($level->product?->sku) {{ $level->product->sku }}@endif |
{{ $level->lot?->lot_number ?? '—' }} | {{ number_format($qty) }} | {{ $cost > 0 ? number_format($cost, 4) : '—' }} | {{ number_format($qty * $cost, 0) }} | {{ $sell > 0 ? number_format($sell, 2) : '—' }} | {{ $sell > 0 ? number_format($qty * $sell, 0) : '—' }} | {{ $margin !== null ? $margin.'%' : '—' }} |
| {{ $locationName }} Subtotal | {{ number_format($locCost, 0) }} | {{ $locSell > 0 ? number_format($locSell, 0) : '—' }} | ||||||
| Grand Total — At Cost | {{ $currency }} {{ number_format($totalCost, 0) }} |
| Grand Total — At Selling | {{ $currency }} {{ number_format($totalSell, 0) }} |