{{-- resources/views/panels/sidebar.blade.php --}}
@php
use App\Helpers\Helper;
$configData = Helper::applClasses();
$role = Auth::user()->role ?? 'guest';
@endphp
{{-- AGENT MENU --}}
@if ($role === 'agent')
-
-
-
{{-- Single Leads entry (everything funnels to the index with tabs) --}}
-
{{-- Removed: Purchase Leads, Purchased Leads, Archived Purchased --}}
-
{{-- Agent Appointments (static) --}}
-
{{-- Resources (Agent) --}}
@if (Route::has('agent.resources.index'))
-
@endif
@endif
{{-- CLIENT MENU --}}
@if ($role === 'client')
-
-
-
-
{{-- Client Appointments (static) --}}
-
@endif
{{-- ADMIN MENU --}}
@if ($role === 'admin')
-
-
-
-
-
-
-
-
{{-- Admin: Resources --}}
@php
$role = Auth::user()->role ?? 'guest';
@endphp
@if ($role === 'admin')
{{-- Create Resource Card --}}
-
{{-- Manage Resource Cards (Edit/Delete from list) --}}
@if (Route::has('admin.resources.index'))
-
@endif
{{-- Create Resource Page (content shown on agent/resources/show.blade.php) --}}
@if (Route::has('admin.resources.page.create'))
-
@endif
{{-- Manage Resource Pages (includes Edit/Delete in the index table) --}}
@if (Route::has('admin.resources.page.index'))
-
@endif
@endif
@endif