@extends('admin.layouts.master') @section('title', 'Dashboard') @push('styles') @endpush @section('content')

Welcome back, {{ $adminName }}

{{ now()->format('l, F j, Y') }} · Tree Of Memories overview

Add Memorial @if ($role === 1) Add Funeral Home @endif
@if ($role === 1) @endif @if ($role === 2)

Paid Revenue

USD ${{ number_format($paidAmount, 2) }}

{{ $paidPayments }} paid · {{ $pendingPayments }} pending
@endif
Activity Overview

Last 6 months · memorials & paid payments

Memorial Status

Active vs inactive

Payment Status

Paid vs pending

@if ($role === 1)
New App Users

Registrations over the last 6 months

@endif
Recent Memorials

Latest memorial records

View all
@if ($role === 1)@endif @forelse ($recentMemorials as $memorial) @php $home = $memorial->funeralHome; $homeName = $home ? ($home->funeral_home_name ?: $home->contact_person ?: $home->user_name) : '—'; @endphp @if ($role === 1) @endif @empty @endforelse
NameFuneral HomeStatus
{{ $memorial->f_name ?: '—' }}{{ $homeName }} @if ((string) $memorial->f_status === '1') Active @else Inactive @endif
No memorials yet
Recent Payments

Latest transactions

View all
@forelse ($recentPayments as $payment) @empty @endforelse
Memorial Amount Status
{{ $payment->funeral?->f_name ?: '—' }} USD ${{ number_format((float) ($payment->p_amount ?: 0), 2) }} @if ((string) $payment->p_status === '1') Paid @else Pending @endif
No payments yet
@endsection @push('scripts') @endpush