PT. CINTA KASIH BERSAMA
Warehouse Management System
Dokumen Mutasi Stock
Informasi Mutasi
No. Mutasi: {{ $mutation->mutation_number }}
Tanggal Dibuat: {{ \Carbon\Carbon::parse($mutation->created_at)->format('d F Y H:i') }}
Status: @php $status = $mutation->status instanceof \App\Enums\MutationStatus ? $mutation->status : \App\Enums\MutationStatus::from($mutation->status); @endphp {{ $status->label() }}
Dibuat oleh: {{ $mutation->requestedBy->name ?? '-' }}
Informasi Dealer
Dari Dealer: {{ $mutation->fromDealer->name ?? '-' }}
Ke Dealer: {{ $mutation->toDealer->name ?? '-' }}
@if($mutation->receivedBy)
Diterima oleh: {{ $mutation->receivedBy->name ?? '-' }}
@endif @if($mutation->received_at)
Tanggal Terima: {{ \Carbon\Carbon::parse($mutation->received_at)->format('d F Y H:i') }}
@endif
@if($mutation->shipping_notes)
Catatan Pengiriman
{{ $mutation->shipping_notes }}
@endif @if($mutation->reception_notes)
Catatan Penerimaan
{{ $mutation->reception_notes }}
@endif @if($mutation->approval_notes)
Catatan Persetujuan
{{ $mutation->approval_notes }}
@endif @if($mutation->rejection_reason)
Alasan Penolakan
{{ $mutation->rejection_reason }}
@endif
Detail Produk Mutasi
@if($mutation->status->value !== 'sent') @endif @php $totalRequested = 0; $totalApproved = 0; $fullItems = 0; $partialItems = 0; $rejectedItems = 0; @endphp @foreach($mutation->mutationDetails as $index => $detail) @php $totalRequested += $detail->quantity_requested; $totalApproved += $detail->quantity_approved ?? 0; if ($detail->quantity_approved) { if ($detail->quantity_approved == $detail->quantity_requested) { $fullItems++; } elseif ($detail->quantity_approved > 0) { $partialItems++; } else { $rejectedItems++; } } @endphp @if($mutation->status->value !== 'sent') @endif @endforeach @if($mutation->status->value !== 'sent') @endif
No. Kode Produk Nama Produk Kategori Qty DimintaQty Diterima Catatan
{{ $index + 1 }} {{ $detail->product->code ?? '-' }} {{ $detail->product->name ?? '-' }} {{ $detail->product->category->name ?? '-' }} {{ number_format($detail->quantity_requested, 2) }} {{ $detail->quantity_approved ? number_format($detail->quantity_approved, 2) : '0.00' }} @if($detail->quantity_approved && $detail->quantity_approved < $detail->quantity_requested)
(Kurang {{ number_format($detail->quantity_requested - $detail->quantity_approved, 2) }}) @endif
{{ $detail->notes ?: '-' }}
TOTAL {{ number_format($totalRequested, 2) }}{{ number_format($totalApproved, 2) }} -
Ringkasan Mutasi
{{ count($mutation->mutationDetails) }}
Total Item
@if($mutation->status->value !== 'sent')
{{ $fullItems }}
Lengkap
{{ $partialItems }}
Sebagian
{{ $rejectedItems }}
Ditolak
@endif
{{ number_format($totalRequested, 2) }}
Total Diminta
@if($mutation->status->value !== 'sent')
{{ number_format($totalApproved, 2) }}
Total Diterima
@endif