@php // breadcrumb (section › page) from the first URL segment — presentation only $qcSeg = Request::segment(1) ?: 'home'; $qcPages = include resource_path('views/layouts/admin-pages.php'); $qcPage = $qcPages[$qcSeg] ?? null; $qcTitle = $qcPage['title'] ?? ucwords(str_replace(['-', '_'], ' ', \Illuminate\Support\Str::snake($qcSeg, ' '))); // sub-pages (e.g. /marketingLabs/campaigns) name themselves with @section('pageTitle') if (Request::segment(2) && View::hasSection('pageTitle')) { $qcTitle = html_entity_decode(strip_tags(View::getSection('pageTitle'))); } $qcSection = $qcPage['section'] ?? null; $zsUser = auth()->user(); $ztInitials = collect(preg_split('/\s+/', trim($zsUser->name ?? 'Admin')))->filter()->take(2)->map(fn($p) => mb_substr($p, 0, 1))->implode(''); // uploaded on the profile page; falls back to the initials when there is none $ztPhoto = $zsUser && method_exists($zsUser, 'photoUrl') ? $zsUser->photoUrl() : null; @endphp {{-- Top bar (Zuno design): menu · breadcrumb · date · theme · account --}}
{{ now()->format('D, j M Y') }}