- Update invalid 'finance.show' route to the correct 'admin.finance.show' in email templates. - This prevents broken links in approval, rejection, and status update emails.
32 lines
827 B
PHP
32 lines
827 B
PHP
<x-mail::message>
|
|
# Finance Document Rejected
|
|
|
|
Your finance document has been rejected.
|
|
|
|
**Document Details:**
|
|
- **Title:** {{ $document->title }}
|
|
- **Amount:** KES {{ number_format($document->amount, 2) }}
|
|
- **Type:** {{ ucfirst(str_replace('_', ' ', $document->type)) }}
|
|
@if($document->member)
|
|
- **Member:** {{ $document->member->full_name }}
|
|
@endif
|
|
|
|
**Rejection Details:**
|
|
- **Rejected by:** {{ $document->rejectedBy->name }}
|
|
- **Rejected at:** {{ $document->rejected_at->format('M d, Y H:i') }}
|
|
|
|
@if($document->rejection_reason)
|
|
**Reason:**
|
|
{{ $document->rejection_reason }}
|
|
@endif
|
|
|
|
<x-mail::button :url="route('admin.finance.show', $document)">
|
|
View Document
|
|
</x-mail::button>
|
|
|
|
Please review the rejection reason and contact the approver if you have any questions.
|
|
|
|
Thanks,<br>
|
|
{{ config('app.name') }}
|
|
</x-mail::message>
|