@extends('dashboard.admin.layouts.master') @section('content')

Approval Details

Back
{{ ucfirst(str_replace('_', ' ', $approval->request_type)) }}
{{ $approval->requesterEmployee?->code ?? '-' }} - {{ $approval->requesterEmployee?->name ?? '-' }}
{{ ucfirst($approval->status) }}
{{ $approval->current_sequence_order ?? '-' }}
{{ optional($approval->submitted_at)->format('Y-m-d H:i') ?: '-' }}
@if($requestRecord)

Request Snapshot

{{ $requestRecord->request_code ?? '-' }}
{{ $requestRecord->employee?->code ?? '-' }} - {{ $requestRecord->employee?->name ?? '-' }}
{{ $requestRecord->branch?->name ?? '-' }}
{{ ucfirst($requestRecord->status ?? '-') }}
@endif

Approval Steps

@foreach($approval->steps as $step) @endforeach
Sequence Status Approver Acted By Acted At Notes
{{ $step->sequence_order }} {{ ucfirst($step->status) }} {{ $step->approverEmployee?->name ?? ($step->role?->name ?? ucfirst($step->approval_type)) }} {{ $step->actorAdmin?->name ?? '-' }} {{ optional($step->acted_at)->format('Y-m-d H:i') ?: '-' }} {{ $step->action_notes ?: '-' }}
@if($approval->status === 'pending')

Approval Action

@csrf @method('PUT')
@error('action')
{{ $message }}
@enderror
@error('action_notes')
{{ $message }}
@enderror
@endif
@endsection