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:
| kode_brg |
nama_brg |
@foreach($run->missing_items as $it)
| {{ $it['kode_brg'] ?? '' }} |
{{ $it['nama_brg'] ?? '' }} |
@endforeach
@endif
@endif