@php // Determine whether the device is mobile $device_mobile = !is_null(Request::header('User-Agent')) && (preg_match('/Mobi/', Request::header('User-Agent')) || preg_match('/iP(hone|ad|od);/', Request::header('User-Agent'))); // If an overridden title has been set (error pages) then use that, otherwise use the Meta model to populate metadata if (isset($title)) { $meta = [ 'title' => $title . ' - ' . env('APP_NAME'), 'description' => '', 'keywords' => '' ]; } else { $meta = App\Models\Meta::getData(Request::path()); } @endphp {{ $meta['title'] }} @yield('page-includes')
@yield('page-top')
@yield('page-content')
@yield('page-bottom')
@if(Config::get('app.debug') && Config::get('app.env') === 'local') @endif