@extends('layouts.app') @section('title', 'Approval Instance #' . $instance->instance_id) @section('content')
{{ $instance->record_type }}
{{ $instance->record_number }}
{{ $instance->record_title }}
@if($instance->status == 'PENDING') Pending @elseif($instance->status == 'APPROVED') Approved @elseif($instance->status == 'REJECTED') Rejected @elseif($instance->status == 'CANCELLED') Cancelled @else {{ $instance->status }} @endif
Step {{ $instance->current_step }}
{{ $instance->initiatedBy->name ?? 'Unknown' }}
{{ $instance->initiated_at ? $instance->initiated_at->format('M d, Y H:i') : 'N/A' }}
{{ $instance->completed_at->format('M d, Y H:i') }}
{{ $instance->final_decision }}
No file uploaded for this document.
@endifNo file uploaded for this document.
@endifNo document file available for this approval.
| Step | Name | Approver | Status |
|---|---|---|---|
| {{ $step->step_order }} | {{ $step->step_name }} | @if($step->approver_type == 'USER') {{ $step->approver->name ?? 'Not assigned' }} @elseif($step->approver_type == 'ROLE') {{ $step->required_role ?? 'Any' }} @endif | @if($step->step_order < $instance->current_step) Completed @elseif($step->step_order == $instance->current_step && $instance->status == 'PENDING') Current @elseif($step->step_order == $instance->current_step && $instance->status != 'PENDING') Final @else Pending @endif |
No workflow steps configured
@endif| Approver | Action | Comment | Signature | Date |
|---|---|---|---|---|
| {{ $action->approver->name ?? 'Unknown' }} | @if($action->action == 'APPROVE') Approved @elseif($action->action == 'REJECT') Rejected @elseif($action->action == 'COMMENT') Commented @else {{ $action->action }} @endif | {{ $action->comment ?? '-' }} |
@if($action->signature_url)
|
{{ $action->created_at ? $action->created_at->format('M d, Y H:i') : 'N/A' }} |
No actions recorded yet
@endifWorkflow information not available
@endifThis signature will be attached to your approval action