{{ session('success') }}
@endif
@yield('content')
{{-- โโโ LEFT CLUSTER: Hamburger Toggle & Spotlight Search โโโ --}}
{{-- โโโ RIGHT CLUSTER: SaaS Utility Tools & User Profile Capsule โโโ --}}
{{-- Mobile Search Icon Button --}}
{{-- 1. SaaS Quick Action (+ ห
) Amber Pill Button --}}
{{-- 2. Language Selector Dropdown (๐ EN ห
) --}}
{{-- 3. Theme / Fullscreen Toggle Icon (โ๏ธ) --}}
{{-- Divider --}}
{{-- 4. Notification Bell with Count Badge (๐ยณ) --}}
@php
$unreadAlertsCount = 0;
if(Auth::check() && Auth::user()->hasAnyRole()) {
try {
$unreadAlertsCount = \App\Models\Contact::where('created_at', '>=', now()->subDays(7))->count();
} catch(\Throwable $e) {}
}
@endphp
{{-- 5. Help Icon (โ) --}}
{{-- 6. Live Website Link Icon (โ) --}}
{{-- Divider --}}
{{-- 7. User Profile Capsule ((A) Admin Super Administrator) --}}
@if(Auth::check() && Auth::user()->hasAnyRole())
{{ __('Quick Create (Admin)') }}
๐
{{ __('Add Place / Temple') }}
๐
{{ __('Add Event') }}
๐
{{ __('Add Story') }}
๐
{{ __('Add Page') }}
๐ช
{{ __('Add Business') }}
{{ __('System Settings') }}
@else
{{ __('Devotee Actions') }}
@endif
{{ __('Choose Language') }}
@foreach($supportedLanguages ?? [] as $code => $lang)
{{ $lang['flag'] ?? '' }}
{{ $lang['name'] ?? $lang['native'] }}
@if(($currentLocale ?? 'en') === $code)
@endif
@endforeach
{{ __('Platform Notifications') }}
{{ $unreadAlertsCount > 0 ? $unreadAlertsCount : 3 }} {{ __('new') }}
@if(Auth::check() && Auth::user()->hasAnyRole())
@else
@endif
{{ __('Devotee Inquiries') }}
{{ __('Review contact messages & seva questions') }}
{{ __('WhatsApp Gateway') }}
{{ __('Ekadashi & festival message logs') }}
{{ __('Active Seva Passes') }}
{{ __('View your shifts & digital entry pass') }}
{{ __('80G Tax Receipts') }}
{{ __('Download IT deduction PDF receipts') }}
{{ strtoupper(substr(Auth::user()?->name ?? 'Admin', 0, 1)) }}
{{ Auth::user()?->name ?? 'Admin' }}
{{ Auth::user()?->email ?? 'admin@dhamseva.com' }}
{{ Auth::user()?->hasAnyRole() ? 'Super Administrator' : 'Devotee / Pilgrim' }}
{{ __('My Profile & Yatra') }}
{{ __('Account Settings') }}
@if(Auth::check() && Auth::user()->hasAnyRole())
{{ __('Admin Console') }}
@endif