@extends('layouts/base_view') @section('title') {!! $variables['header_routes'] !!} @endsection @section('content')

{{ $variables['judul'] }}

@if($data->status == 'Draft') Ubah Hapus @endif @if($data->isBeingEdited()) @endif @if($data->status == 'Submitted') @endif Kembali
@if($data->isBeingEdited()) @php $editingInfo = $data->getEditingInfo(); @endphp @endif
Nomor SO : {{ $data->so_number }}
Store : {{ $data->store->name ?? '-' }}
Tanggal SO : {{ $data->so_date->format('d/m/Y') }}
Status : @if($data->status == 'Closed') {{ $data->status }} @elseif($data->status == 'Submitted') {{ $data->status }} @else {{ $data->status }} @endif
Sedang Diedit : {{ $editingInfo['user'] }}
{{ $editingInfo['since'] }}
Dibuat Oleh : {{ $data->creator->fullname ?? 'System' }} ({{ $data->created_at->format('d/m/Y H:i') }})
Diubah Oleh : {{ $data->modificator->fullname ?? '-' }} ({{ $data->updated_at ? $data->updated_at->format('d/m/Y H:i') : '-' }})
Total Item : {{ count($data->details) }} item
@if($data->notes)
Catatan : {{ $data->notes }}
@endif @if($data->status == 'Submitted')
Informasi Generate SPB

Jika tombol "Generate SPB Regular" diklik, sistem akan membuat SPB berdasarkan pengelompokan:

Memuat informasi pengelompokan...
@endif
Item Stock Opname
@forelse($data->details as $index => $detail) @empty @endforelse @if(count($data->details) > 0) @endif
No Kode Item UOM Qty Utuh Qty Pakai Konversi Qty Terkonversi Ending Stock Catatan
{{ $index + 1 }} {{ $detail->rawMaterial->code ?? '' }} {{ $detail->rawMaterial->name ?? '' }} {{ $detail->rawMaterial->uom ?? '' }} {{ number_format($detail->qty_utuh, 2) }} {{ number_format($detail->qty_pakai, 2) }} {{ number_format($detail->rawMaterial->conversion_factor ?? 1, 4) }} {{ number_format($detail->qty_converted, 2) }} {{ number_format($detail->lsm_aktual, 2) }} {{ $detail->notes ?? '-' }}
Tidak ada item ditemukan
Total Item: {{ count($data->details) }}
@method('delete') @csrf
@endsection