Request Details
Request #{{ $request->id }} - {{ $request->title }}
{{ $approver->designation ?? $approver->role ?? '' }} @else None assigned @endif
{{ $request->created_at->setTimezone('Asia/Kuala_Lumpur')->diffForHumans() }} @else Unknown @endif
{{ $request->submitter->designation }} @endif
{{ $request->title }}
Created By: {{ $request->submitter ? $request->submitter->name : '-' }}
Created At: @if($request->created_at) {{ $request->created_at->setTimezone('Asia/Kuala_Lumpur')->format('d/m/Y H:i') }} ({{ $request->created_at->setTimezone('Asia/Kuala_Lumpur')->diffForHumans() }}) @else - @endif
Status: @if($request->status == 'rejected') Rejected @elseif($request->status == 'completed') Completed @elseif($request->status == 'escalated') Approved & Escalated @elseif($request->status == 'approved') Approved @else {{ ucfirst($request->status) }} @endif
Category: {{ $request->category }}
@if($request->category == 'Other' && !empty($request->other_category))Other Category: {{ $request->other_category }}
@endifPurchase Request Type: {{ $request->request_type }}
@if(!empty($request->project_name))Project Name: {{ $request->project_name }}
@endif @if($request->request_type)Approval Workflow:
Branch: {{ ucfirst($request->branch) }}
@if(!empty($request->unit))Unit: {{ $request->unit }}
@endifUrgency: @if($request->urgency == 'High') High @elseif($request->urgency == 'Medium') Medium @elseif($request->urgency == 'Low') Low @else {{ $request->urgency }} @endif
Description / Justification:
-
@php
$attachments = [];
if (!empty($request->attachments)) {
if (is_array($request->attachments)) {
$attachments = $request->attachments;
} elseif (is_string($request->attachments)) {
$decoded = json_decode($request->attachments, true);
$attachments = is_array($decoded) ? $decoded : [];
}
}
@endphp
@forelse($attachments as $file)
- {{ $file['original'] ?? 'Attachment' }} @empty
- No attachments available @endforelse
Approval Workflow & History
Complete timeline of all actions taken on this request| User Details | Role & Permission | Action Taken | Comments | Date & Time |
|---|---|---|---|---|
|
{{ $request->submitter->name ?? 'Unknown' }}
{{ $request->submitter->email ?? '' }} |
{{ $request->submitter->designation ?? $request->submitter->role ?? 'Submitter' }}
Request Originator |
Submitted | Initial request submission |
{{ $request->created_at->setTimezone('Asia/Kuala_Lumpur')->format('d/m/Y H:i') }}
{{ $request->created_at->setTimezone('Asia/Kuala_Lumpur')->diffForHumans() }} |
|
@if($approval->decision == 'approved')
@elseif($approval->decision == 'rejected')
@elseif($approval->decision == 'escalated')
@else
@endif
{{ $approval->approver->name ?? 'Unknown' }}
{{ $approval->approver->email ?? '' }} |
{{ $approval->approver->designation ?? $approval->approver->role ?? 'User' }}
@if($approval->approver->is_approver)
Authorized Approver @endif |
@if($approval->decision == 'approved') Approved @elseif($approval->decision == 'escalated') Escalated @elseif($approval->decision == 'rejected') Rejected @elseif($approval->decision == 'rejected_resubmit') Resubmission Required @else {{ ucfirst($approval->decision) }} @endif |
@if($approval->comments)
{{ $approval->comments }}
@else
No comment provided
@endif
|
{{ $approval->created_at->setTimezone('Asia/Kuala_Lumpur')->format('d/m/Y H:i') }}
{{ $approval->created_at->setTimezone('Asia/Kuala_Lumpur')->diffForHumans() }} |
|
{{ $request->currentApprover->name }}
{{ $request->currentApprover->email ?? '' }} |
{{ $request->currentApprover->designation ?? $request->currentApprover->role ?? 'User' }}
@if($request->currentApprover->is_approver)
Authorized Approver @endif |
Pending Review | Awaiting action... | - |
| No approval actions recorded yet. | ||||
Requested Assets
{{ $inventory->item_name }}
Itemized List
Complete breakdown of requested items with pricing| Item Name | Qty | Unit Cost (MYR) | Tax Rate (%) | Tax Amount (MYR) | Delivery (MYR) | Total Cost (MYR) | Attachment |
|---|---|---|---|---|---|---|---|
|
{{ $item['name'] ?? '' }}
@if(!empty($item['description']))
{{ $item['description'] }}
@endif
|
{{ $qty }} | {{ number_format($unitCost, 2) }} | {{ number_format($taxRate, 2) }}% | {{ number_format($taxAmount, 2) }} | {{ $deliveryCharge > 0 ? number_format($deliveryCharge, 2) : '-' }} | {{ number_format($calculatedTotal, 2) }} | @if(!empty($item['attachment'])) @else - @endif |
|
No items found for this request. |
|||||||
The PDF is updated automatically with the latest approval history and status.
Download PDF View PDF Last updated: {{ $request->updated_at->format('d/m/Y H:i') }}You are authorized to approve, reject, or escalate this request
Request Resubmission Required
Action Required
Your request has been reviewed and requires modifications before it can be approved. Please review the feedback below and make the necessary changes.
{{-- Show the rejection comment --}} @php $rejectionApproval = $request->approvals() ->where('decision', 'rejected_resubmit') ->latest() ->first(); @endphp @if($rejectionApproval){{ $rejectionApproval->comments }}
{{ $rejectionApproval->created_at->setTimezone('Asia/Kuala_Lumpur')->format('d/m/Y H:i') }}Awaiting Resubmission
This request has been sent back to {{ $request->submitter->name ?? 'the requester' }} for modifications. The request will return to the approval workflow once the changes have been made and resubmitted.
Feedback Provided:
{{ $rejectionApproval->comments }}
By: {{ $rejectionApproval->approver->name ?? 'Reviewer' }} - {{ $rejectionApproval->created_at->setTimezone('Asia/Kuala_Lumpur')->format('d/m/Y H:i') }}