Create {{ $title }}

{{--
--}} @csrf
{{-- --}} @if (isset($data->id)) @if ($data->files != '') Lihat File {{ $data->files }} @endif @endif
@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))
@foreach ($product_stocks as $item) @endforeach
Satuan Kecil Stok Satuan Besar Stok Gudang Last Update
{{ $item->unit_name }} {{ $item->qty }} {{ $item->unit_large }} {{ $item->qty_large }} {{ $item->warehouse_name }} {{ $item->updated_at }}
@if (strtolower($akses) == 'superadmin')
@foreach ($product_costs as $item) @endforeach
Satuan Harga Vendor Tanggal Mulai Berlaku Status
{{ $item->unit_name }} {{ number_format($item->cost, 2, ',', '.') }} {{ $item->nama_vendor }} {{ $item->date_start }} {{ $item->is_active == 1 ? 'Aktif' : 'Tidak Aktif' }}
@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