@php // page title + icon from the first URL segment (presentation only) $qcSeg = Request::segment(1) ?: 'home'; $qcTitle = ucwords(str_replace(['-', '_'], ' ', \Illuminate\Support\Str::snake($qcSeg, ' '))); $qcIcons = [ 'home' => 'fa-home', 'dashboard' => 'fa-chart-pie', 'user' => 'fa-user', 'companyProfile' => 'fa-building', 'faq' => 'fa-circle-question', 'maintenance_mode' => 'fa-screwdriver-wrench', 'common' => 'fa-cogs', 'packages' => 'fa-box', 'subscriptionPackage' => 'fa-layer-group', 'rolePermissions' => 'fa-user-shield', 'rolePermission' => 'fa-user-shield', 'contactUs' => 'fa-envelope', 'activityLog' => 'fa-clock-rotate-left', 'loginLog' => 'fa-right-to-bracket', 'cronLog' => 'fa-stopwatch', 'laravelLog' => 'fa-bug', 'visitorTracker' => 'fa-chart-line', 'ticketSupport' => 'fa-headset', 'marketingLabs' => 'fa-bullhorn', 'marketingLabMailLog' => 'fa-envelope-open-text', 'marketingFunnelReport' => 'fa-filter', 'profile' => 'fa-user-circle', 'backupLog' => 'fa-database', 'systemHealth' => 'fa-heart-pulse', ]; $qcIcon = $qcIcons[$qcSeg] ?? 'fa-folder-open'; $qcTitle = ['faq' => 'FAQ', 'backupLog' => 'Backups', 'systemHealth' => 'System Health'][$qcSeg] ?? $qcTitle; @endphp