@php $phSeg = Request::segment(1) ?: 'home'; $phPages = include resource_path('views/layouts/admin-pages.php'); $phPage = $phPages[$phSeg] ?? null; $phTitle = $phPage['title'] ?? ucwords(str_replace(['-', '_'], ' ', \Illuminate\Support\Str::snake($phSeg, ' '))); @endphp {{-- Page header (Zuno .z-page-head). Pages may override with @section('pageTitle' | 'pageSub' | 'pageActions'), or hide it with @section('pageHead', '') --}} @if (!View::hasSection('pageHead') || trim(View::getSection('pageHead')) !== '')
@yield('pageSub')
@elseif (!empty($phPage['sub'])){{ $phPage['sub'] }}
@endif