{{-- Built in PHP (no @if) so Livewire's Blade extension never wraps it. --}} @php // Superadmin not impersonating → always show platform brand, never a tenant name. $__isSuperAdmin = auth()->check() && auth()->user()->user_type === 'admin'; $__impersonating = session()->has('impersonator_id'); $__organization = ($__isSuperAdmin && ! $__impersonating) ? null : (function_exists('current_organization') ? current_organization() : null); $__name = $__organization ? $__organization->name : brand_name(); $__short = organization_short_name(); $__cLogo = $__organization && $__organization->logo ? asset('storage/' . $__organization->logo) : null; $__pLogo = $__organization ? null : system_logo_url(); // platform logo only for superadmin $__logo = $__cLogo ?: $__pLogo; if ($__logo) { $__brand = '' . e($__name) . '' . '' . e($__name) . ''; } else { $__brand = ' ' . e($__name) . '' . '' . e($__short) . ''; } @endphp {!! $__brand !!}
@once @endonce
    @if (auth()->check() && auth()->user()->isSuperAdmin()) {{-- ============ SaaS SuperAdmin menu ============ --}}
  • SaaS Admin
  • {{ _lang('Dashboard') }}
  • @if (admin_can('organizations'))
  • {{ _lang('Organizations') }}
  • @endif @if (admin_can('subscriptions'))
  • {{ _lang('Subscriptions') }}
  • @endif @if (admin_can('billing'))
  • {{ _lang('Billing') }}
  • @endif @if (admin_can('notices'))
  • {{ _lang('Notices') }}
  • @endif @if (admin_can('push'))
  • {{ _lang('Push Notification') }}
  • @endif @if (admin_can('support'))
  • {{ _lang('Support Chat') }} @php $__supUnread = \Illuminate\Support\Facades\Schema::hasTable('support_conversations') ? (int) \App\Models\SupportConversation::sum('unread_admin_count') : 0; @endphp @if ($__supUnread > 0) {{ $__supUnread }} @endif
  • @endif @if (admin_can('usage'))
  • {{ _lang('App Usage') }}
  • @endif @if (admin_can('visitors'))
  • {{ _lang('Website Visitors') }}
  • @endif @if (admin_can('contacts')) @php $contactUnread = \App\Models\ContactSubmission::where('is_read', false)->count(); @endphp
  • যোগাযোগ বার্তা @if($contactUnread > 0) {{ $contactUnread }} @endif
  • @endif @if (admin_can('users'))
  • {{ _lang('All Users') }}
  • @endif @if (is_main_superadmin())
  • সাব-অ্যাডমিন
  • @endif
  • {{ _lang('System') }}
  • @if (admin_can('settings'))
  • {{ _lang('Settings') }}
  • @endif @if (admin_can('email'))
  • {{ _lang('Email Settings') }}
  • @endif @if (admin_can('tools'))
  • {{ _lang('Tools') }}
  • @endif
  • {{ _lang('My Profile') }}
  • @if (admin_can('system'))
  • {{ _lang('System Update') }} @if (\App\Services\UpdateHelper::checkUpdate()['updatable']) ! @endif
  • @endif
  • {{ _lang('Public Help Page') }} {{ _lang('Public') }}
  • @else {{-- ============ Tenant (organization) menu ============ --}} {{-- Tenant UI is the mobile app; the web dashboard only redirects to the download page. --}}
  • Main
  • {{ _lang('Dashboard') }}
  • @endif {{-- end superadmin / tenant branch --}}