@extends('layouts.portal') @section('title', 'Trust Details - ' . $trust->trust_name) @section('page_title', 'Trust Overview') @section('page_subtitle', $trust->trust_name) @section('content')
Trust Code: {{ $trust->trust_code }}
| Trust Name | {{ $trust->trust_name }} |
| Trust Code | {{ $trust->trust_code }} |
| Trust Type | {{ ucfirst(str_replace('_', ' ', $trust->trust_type)) }} |
| Trust Purpose | {{ $trust->trust_purpose ?? 'Not specified' }} |
| Creation Date | {{ \Carbon\Carbon::parse($trust->creation_date)->format('d M Y') }} |
| Initial Value | RM {{ number_format($trust->initial_value ?? 0, 2) }} |
| Status | @php $statusClass = match($trust->status) { 'approved' => 'bg-green-100 text-green-800', 'rejected' => 'bg-red-100 text-red-800', 'pending_approval' => 'bg-yellow-100 text-yellow-800', 'submitted' => 'bg-blue-100 text-blue-800', default => 'bg-gray-100 text-gray-800' }; @endphp {{ ucfirst(str_replace('_', ' ', $trust->status)) }} |
| Full Name | {{ $trust->trust_creator['full_name'] ?? (($trust->trust_creator['first_name'] ?? 'N/A') === ($trust->trust_creator['last_name'] ?? '') ? ($trust->trust_creator['first_name'] ?? '') : (($trust->trust_creator['first_name'] ?? '') . ' ' . ($trust->trust_creator['last_name'] ?? ''))) }} |
| NRIC/ID | {{ $trust->trust_creator['nric'] ?? 'N/A' }} |
| Date of Birth | {{ $trust->trust_creator['date_of_birth'] ? \Carbon\Carbon::parse($trust->trust_creator['date_of_birth'])->format('d M Y') : 'N/A' }} |
| Nationality | {{ $trust->trust_creator['nationality'] ?? 'N/A' }} |
| {{ $trust->trust_creator['email'] ?? 'N/A' }} | |
| Phone | {{ $trust->trust_creator['phone'] ?? 'N/A' }} |
| Address | {{ $trust->trust_creator['address'] ?? 'N/A' }} |
| No creator information available | |
{{ $trust->additional_instructions }}