@php $statusMeta = [ 'draft' => ['label' => __('Draft'), 'color' => 'slate'], 'in_transit' => ['label' => __('In transit'), 'color' => 'amber'], 'completed' => ['label' => __('Completed'), 'color' => 'emerald'], 'cancelled' => ['label' => __('Cancelled'), 'color' => 'rose'], ]; @endphp
| {{ __('Date') }} | {{ __('Material / Variant') }} | {{ __('From') }} | {{ __('To') }} | {{ __('Quantity') }} | {{ __('Status') }} | {{ __('Actions') }} |
|---|---|---|---|---|---|---|
| {{ optional($transfer->moved_at ?? $transfer->created_at)->format('d M Y') }} @if ($transfer->reference) {{ $transfer->reference }} @endif |
{{ $transfer->variant?->material?->name ?? '—' }} {{ $transfer->variant?->label }} |
{{ $transfer->fromLocation?->name ?? '—' }} | {{ $transfer->toLocation?->name ?? '—' }} | {{ number_format((float) $transfer->quantity, 2) }} |
|
@if ($canManage && ! in_array($transfer->status, ['completed', 'cancelled'], true)) @else — @endif |
|
|
||||||