@php $page_title = (isset($title) ? $title . ' - ' : '') . env('APP_NAME'); $device_mobile = preg_match('/Mobi/', Request::header('User-Agent')) || preg_match('/iP(hone|ad|od);/', Request::header('User-Agent')); @endphp