@vite(['resources/sass/app.scss', 'resources/js/app.js'])
Will Management
Admin Portal
@php $activeSection = 'dashboard'; $path = request()->path(); if (str_contains($path, '/finance')) { $activeSection = 'finance'; } elseif (str_contains($path, '/reports/enhanced')) { $activeSection = 'reports-enhanced'; } elseif (str_contains($path, '/reports')) { $activeSection = 'reports'; } elseif (str_contains($path, '/clients')) { $activeSection = 'clients'; } elseif (str_contains($path, '/wills')) { $activeSection = 'wills'; } elseif (str_contains($path, '/staff')) { $activeSection = 'staff'; } elseif (str_contains($path, '/appointments')) { $activeSection = 'appointments'; } elseif (str_contains($path, '/estate')) { $activeSection = 'estate'; } elseif (str_contains($path, '/storage')) { $activeSection = 'storage'; } elseif (str_contains($path, '/mlm')) { $activeSection = 'mlm-settings'; } elseif (str_contains($path, '/withdrawals')) { $activeSection = 'withdrawals'; } elseif (str_contains($path, '/lawyer-invoices')) { $activeSection = 'lawyer-invoices'; } elseif (str_contains($path, '/lawyer-settings')) { $activeSection = 'lawyer-settings'; } elseif (str_contains($path, '/audit')) { $activeSection = 'audit'; } // Specific finance sub-pages if (str_contains($path, '/finance/transactions')) { $activeSection = 'finance-transactions'; } elseif (str_contains($path, '/finance/commissions')) { $activeSection = 'finance-commissions'; } elseif (str_contains($path, '/finance/assets')) { $activeSection = 'finance-assets'; } // Specific reports sub-pages if (str_contains($path, '/reports/enhanced/clients')) { $activeSection = 'reports-clients'; } elseif (str_contains($path, '/reports/enhanced/wills')) { $activeSection = 'reports-wills'; } elseif (str_contains($path, '/reports/enhanced/agents')) { $activeSection = 'reports-agents'; } elseif (str_contains($path, '/reports/enhanced/lawyers')) { $activeSection = 'reports-lawyers'; } elseif (str_contains($path, '/reports/enhanced/commissions')) { $activeSection = 'reports-commissions'; } elseif (str_contains($path, '/reports/enhanced/will_creator_stats')) { $activeSection = 'reports-creator-stats'; } @endphp @include('admin.partials.sidebar', ['active' => $activeSection])
@yield('title')
Welcome, {{ Auth::user()->name }}
{{ Auth::user()->name }}
Profile
Notifications
Logout
@csrf
@yield('content')