@php $run = $this->run; @endphp
Progress Import Stock Opname
@if(!$run)
Belum ada proses import.
@else @php $total = max(1, (int)($run->total_rows ?? 1)); $done = (int)($run->processed_rows ?? 0); $pct = min(100, (int)(($done / $total) * 100)); @endphp
Status: {{ $run->status }}
{{ $run->message }}
{{ $done }} / {{ $run->total_rows }} ({{ $pct }}%)
@if($run->status === 'failed' && is_array($run->missing_items) && count($run->missing_items))
Barang tidak ada di ms_stock:
@foreach($run->missing_items as $it) @endforeach
kode_brg nama_brg
{{ $it['kode_brg'] ?? '' }} {{ $it['nama_brg'] ?? '' }}
@endif @endif