@extends('layouts.portal') @section('title', 'Estate Case Details') @section('page_title', 'Estate Administration') @section('page_subtitle', 'Case: ' . $case->case_number) @php use Illuminate\Support\Facades\Storage; @endphp @section('sidebar') @php $__estateSidebar = match(session('active_role', auth()->user()->role)) { 'staff' => 'staff.partials.sidebar', 'lawyer' => 'lawyer.partials.sidebar', default => 'admin.partials.sidebar' }; @endphp @include($__estateSidebar, ['active' => 'estate']) @endsection @push('styles') @endpush @section('content')
{{ $case->case_number }}
Notes
{{ $case->notes }}
Update Case Status
Current: @php $statuses = \App\Models\EstateCase::getStatuses(); echo $statuses[$case->status] ?? ucwords(str_replace('_', ' ', $case->status ?? 'Unknown')); @endphp
{{ $case->will ? 'Will #' . $case->will->id . ' - status: ' . $case->will->status : 'No will linked to this case.' }}
@if($case->status === 'will_activated' || in_array($case->status, ['certificate_verification']) === false) @if($case->will && $case->will->status !== 'activated' && $case->death_certificate_verified_at) @endif @endif{{ $executor->name }} @if($executor->backup_executor) (Backup) @endif
{{ $executor->email }} · {{ $executor->relationship_text }}
Decline reason: {{ $executor->declined_reason }}
@endifNo executors on file yet. Executors are pulled from the will once notified.
@endforelse @if($case->status === 'will_activated' || $case->executors_notified_at) @endif{{ $case->beneficiaries_notified_at ? 'Beneficiaries notified on ' . $case->beneficiaries_notified_at->format('d M Y H:i') : 'Beneficiaries have not been notified yet.' }}
{{ ucfirst(str_replace('_', ' ', $review->decision)) }} by {{ $review->reviewer->name ?? 'N/A' }} on {{ $review->created_at->format('d M Y') }}
@if($review->notes){{ $review->notes }}
@endifNo review recorded yet.
@endforelse @if($case->status !== 'lawyer_admin_review') @else @endifDeclared: RM {{ number_format($item->declared_value, 2) }} · Actual: RM {{ number_format($item->actual_value ?? 0, 2) }}
No items verified yet.
@endforelse{{ $dist->beneficiary_name }}
RM {{ number_format($dist->calculated_amount, 2) }} {{ $dist->is_minor ? '(Minor - via guardian)' : '' }}
Distributions have not been calculated yet.
@endforelse @if(in_array($case->status, ['debts_settling', 'distributing'])) @endif @if($case->distributions->count() && $case->distributions->whereNotIn('status', ['paid', 'acknowledged'])->isEmpty() && $case->status !== 'completed') @endif