@extends('layouts.portal') @section('title', 'Formal Document - ' . ($will ? 'Will #' . $will->id : 'Trust #' . $trust->id)) @section('page_title', 'Formal Document Preview') @section('page_subtitle', ($will ? 'Last Will and Testament' : 'Trust Document') . ' - Admin Review') @section('sidebar') @include('admin.partials.sidebar', ['active' => ($will ? 'wills' : 'trusts')]) @endsection @push('styles') @endpush @section('content')

{{ ($will ? 'Will' : 'Trust') }} Formal Document #{{ ($will ? $will->id : $trust->id) }}

{{ ucfirst(str_replace('_', ' ', ($will ? $will->status : $trust->status))) }}
{{ ($will ? $will->client->first_name . ' ' . $will->client->last_name : $trust->client->first_name . ' ' . $trust->client->last_name) ?? 'Unknown' }} {{ ($will ? $will->created_at->format('M d, Y') : $trust->created_at->format('M d, Y')) }}
@if($will) Back to Wills @else Back to Trusts @endif
SAMPLE
{!! $renderedDocument !!}
@endsection