@set('page_title', (isset($title) ? $title . ' - ' : '') . env('SITE_NAME')) @set('device_mobile', preg_match('/Mobi/', Request::header('User-Agent')) || preg_match('/iP(hone|ad|od);/', Request::header('User-Agent'))) {{ $page_title }} @yield('page-includes') @if(Config::get('app.debug')) @endif @if(preg_match('/^dashboard/', Request::path())) @set('body_class', preg_replace([ '/\/(new|[0-9][0-9]*)$/', '/\//' ], [ '', '-' ], Request::path())) @else @set('body_class', Request::path() == '/' ? 'index' : preg_replace('/\/.*/', '', Request::path())) @endif @yield('page-top')
@yield('content')
@yield('page-bottom')