@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')) !== '')
@hasSection('pageEyebrow')
@yield('pageEyebrow')
@endif

@hasSection('pageTitle')@yield('pageTitle')@else{{ $phTitle }}@endif

@hasSection('pageSub')

@yield('pageSub')

@elseif (!empty($phPage['sub']))

{{ $phPage['sub'] }}

@endif
@hasSection('pageActions')
@yield('pageActions')
@endif
@endif