@extends('layouts.portal') @section('title', 'Will Reports') @section('page_title', 'Will Reports') @section('page_subtitle', 'Will statistics, creator information, and detailed analytics') @section('sidebar') @include('admin.partials.sidebar', ['active' => 'reports-wills']) @endsection @section('content')
Will statistics, creator information, and detailed analytics
| ID | Client | Status | Creator Type | Created By | Lawyer | Staff | Created Date | Signed Date | Beneficiaries | Assets | Liabilities | Actions |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| #{{ $will->id }} | @if($will->client) {{ $will->client->full_name }} @else N/A @endif | @php $customStatus = ucfirst(str_replace('_', ' ', $will->status)); if ($will->createdBy && $will->createdBy->role == 'lawyer') { $customStatus = 'Admin Approved Waiting'; } elseif ($will->assignedLawyer && $will->createdBy && $will->createdBy->role == 'admin') { $customStatus = 'Admin Assigned Lawyer'; } @endphp @if($customStatus == 'Admin Approved Waiting') @endif {{ $customStatus }} | {{ ucfirst($will->creator_type ?? 'N/A') }} | @if($will->createdBy) {{ $will->createdBy->name }} @else N/A @endif | @if($will->assignedLawyer) {{ $will->assignedLawyer->full_name ?? $will->assignedLawyer->name }} @else Not Assigned @endif | @if($will->assignedStaff) {{ $will->assignedStaff->full_name ?? $will->assignedStaff->name }} @else Not Assigned @endif | {{ $will->created_at->format('M d, Y') }} | {{ $will->signed_at?->format('M d, Y') ?? 'Not Signed' }} | {{ is_countable($will->beneficiaries) ? count($will->beneficiaries) : 0 }} | {{ is_countable($will->assets) ? count($will->assets) : 0 }} | {{ is_countable($will->liabilities) ? count($will->liabilities) : 0 }} |