@php $page_title = (isset($title) ? $title . ' - ' : '') . env('APP_NAME'); $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'))); @endphp