Below are the details of the loan request.
| Code | {{ $loan->code }} |
| Employee ID | {{ $loan->employee->fullname }} |
| Title | {{ $loan->title }} |
| Description | {{ $loan->description }} |
| Amount | Rp {{ number_format($loan->amount, 0, ',', '.') }} |
| Status | @if ($loan->status === 'approved') Approved @elseif ($loan->status === 'pending') Pending @elseif ($loan->status === 'rejected') Rejected @endif |
| Approval |
@if($approval)
{{ $statusText }}
@if($approval->steps->count())
@foreach($approval->steps as $step)
@endif
@else
-
@endif
Step {{ $step->step_order }} — {{ ucfirst($step->approver_role) }}
@if($step->user_id)
({{ $step->approver?->name ?? '-' }})
@endif
· {{ $step->status }}
@endforeach
|
| Approved At | {{ $loan->approved_at ? \Carbon\Carbon::parse($loan->approved_at)->diffForHumans() : '-' }} |