@extends('layouts.app') @section('title', 'Approval Details') @section('content')
Title: {{ $approvalRequest->model->title ?? 'N/A' }}
Document Number: {{ $approvalRequest->model->document_number ?? 'N/A' }}
Category: {{ $approvalRequest->model->category ?? 'N/A' }}
Status: {{ ucfirst($approvalRequest->status) }}
Initiator: {{ $approvalRequest->initiator->name ?? 'N/A' }}
Submitted: {{ $approvalRequest->submitted_at ? $approvalRequest->submitted_at->format('Y-m-d H:i') : 'N/A' }}
{{ $approvalRequest->model->description }}
Action: {{ ucfirst($step->action_type) }}
@php $actions = $approvalRequest->actions->where('workflow_step_id', $step->id); @endphp @foreach($actions as $action){{ $action->comments }}
@endif {{ $action->created_at->format('Y-m-d H:i') }}You are required to {{ $currentStep->action_type ?? 'approve' }} this document.
@elseif(in_array($approvalRequest->status, ['approved', 'rejected']))This approval request has been {{ $approvalRequest->status }}.
You are not authorized to take action on this request.