@php use App\Models\Item; @endphp @extends('layouts.backend.index') @section('title', $label) @section('content')
No. Adjustment : {{ $opname->number }}
Tanggal : {{ Common::dateFormat($opname->dates, 'dd mmmm yyyy') }}
Nama Penginput : {{ $opname->creator->name }}
{!! $opname->status_badge !!}

@foreach ($items as $index => $i) @php $item = Inventory::select('id', 'id_item', 'sku', 'dimension') ->with([ 'item' => function($query) { $query->select('id', 'id_category', 'name', 'uom') ->with([ 'category' => function($qc) { $qc->select('id', 'name'); }, 'uomData' => function($qc) { $qc->select('id', 'name'); } ]); } ]) ->whereId($i->id) ->first(); @endphp @endforeach
No SKU Nama Barang Kategori Dimensi Jumlah Stok Hasil Stok Opname
{{ $index + 1 }} {{ $item->sku }} {{ $item->item->name }} {{ $item->item->category->name }} @php if (empty($item->dimension)) echo '-'; else { $dimension = json_decode($item->dimension); $dimensions = ''; foreach ($dimension as $d) { $dimensions .= ''; } $dimensions .= '
' . $d->name . ' : ' . $d->value . '
'; echo $dimensions; } @endphp
{{ number_format($i->qty, 0, '', '.') . ' ' . $item->item->uomData->name }} {{ number_format($i->qty_result, 0, '', '.') . ' ' . $item->item->uomData->name }}
@endsection