@extends('layouts.portal') @section('title', 'All Documents') @section('page_title', 'All Documents') @section('page_subtitle', 'View all your wills and documents with PDF download options') @section('sidebar') @include('client.partials.sidebar', ['active' => 'all-documents']) @endsection @section('content')

All Documents

Your complete estate planning document collection

PDF Downloads All Documents

Total Wills

All wills created

{{ $allWills->count() }}

Completed

Ready for download

{{ $allWills->where('status', 'completed')->count() }}

In Progress

Being processed

{{ $allWills->where('status', '!=', 'completed')->count() }}

Trusts

Trust documents

{{ $allTrusts->count() }}
@if($allWills->count() > 0)

All Wills ({{ $allWills->count() }})

@foreach($allWills as $will) @endforeach
Will Type Status Created Last Updated Actions
{{ $will->will_type ?? 'Individual Will' }}
ID: {{ $will->id }}
@if($will->status === 'completed') Completed @elseif($will->status === 'payment_pending' || $will->payment_status === 'pending') Payment Pending @elseif($will->status === 'under_review') Under Review @else {{ ucfirst(str_replace('_', ' ', $will->status ?? 'draft')) }} @endif {{ $will->created_at->format('M j, Y') }} {{ $will->updated_at->format('M j, Y') }}
View @if($will->status === 'completed') Document PDF @elseif($will->payment_status !== 'paid' && $will->status !== 'payment_pending') Pay Now @endif
@endif @if($allTrusts->count() > 0)

All Trusts ({{ $allTrusts->count() }})

@foreach($allTrusts as $trust) @endforeach
Trust Name Status Created Last Updated Actions
{{ $trust->trust_name ?? 'Trust Document' }}
ID: {{ $trust->id }}
@if($trust->status === 'completed') Completed @else {{ ucfirst(str_replace('_', ' ', $trust->status ?? 'draft')) }} @endif {{ $trust->created_at->format('M j, Y') }} {{ $trust->updated_at->format('M j, Y') }}
View @if($trust->status === 'completed') PDF @endif
@endif @if($allWills->count() === 0 && $allTrusts->count() === 0)

No Documents Yet

You haven't created any wills or trusts yet. Start your estate planning journey today.

@endif
@endsection