@forelse($historys as $key => $history) @empty @endforelse
# {{ __('Employee') }} {{ __('Emp code') }} {{ __('Designation') }} {{ __('Branch') }} {{ __('Assigned') }} {{ __('Returned') }} {{ __('Condition') }} {{ __('Status') }}
{{ $key + 1 }} {{ $history->staff?->user?->name ?? '—' }} {{ $history->staff?->user?->id ?? '—' }} {{ $history->staff?->designation?->name ?? '—' }} {{ $history->staff?->warehouse?->name ?? '—' }} {{ $history->assigned_at?->format('d/m/Y') ?? $history->assign_date?->format('d/m/Y') ?? '—' }} {{ $history->returned_at?->format('d/m/Y') ?? ($history->return ? __('Yes') : '—') }} {{ $history->return_condition ? ucfirst(str_replace('_', ' ', $history->return_condition)) : '—' }} @if((int) $history->status === 4) {{ __('Damaged') }} @elseif($history->return_condition === 'consumed') {{ __('Consumed') }} @elseif($history->return || $history->returned_at) {{ __('Returned') }} @else {{ __('Assigned') }} @endif
{{ __('No assignment history.') }}