@if (count($product_uoms) > 0)
@php
$largestUnitId = optional($product_uoms->sortBy('level')->last())->unit_tujuan;
$latestRetailLargePrice = collect($product_prices)
->where('unit', $largestUnitId)
->where('channel', 'RETAIL UMUM')
->where('sub_channel', 'RT-RETAIL UMUM')
->whereNull('deleted')
->filter(function ($price) {
return empty($price->date_start) || $price->date_start <= now()->toDateString();
})
->sortBy('id')
->last();
@endphp
@endif
@if (isset($id))
| Satuan Kecil |
Stok |
Satuan Besar |
Stok |
Gudang |
Last Update |
@foreach ($product_stocks as $item)
| {{ $item->unit_name }} |
{{ $item->qty }} |
{{ $item->unit_large }} |
{{ $item->qty_large }} |
{{ $item->warehouse_name }} |
{{ $item->updated_at }} |
@endforeach
@if (strtolower($akses) == 'superadmin')
| Satuan |
Harga |
Vendor |
Tanggal Mulai Berlaku |
Status |
@foreach ($product_costs as $item)
| {{ $item->unit_name }} |
{{ number_format($item->cost, 2, ',', '.') }} |
{{ $item->nama_vendor }} |
{{ $item->date_start }} |
{{ $item->is_active == 1 ? 'Aktif' : 'Tidak Aktif' }} |
@endforeach
@endif
@endif
@if (isset($id))
@include('web.product.product-list-item-level')
@include('web.product.product-list-item-price')
@include('web.product.product-list-disc-strata')
@include('web.product.product-list-disc-free')
@endif
{{-- --}}
@if (isset($view_detail))
@else
@endif