@if (isset($exception)) @if (!empty($exception->getStatusCode()))
Page Not Found | {{ env('APP_NAME') }}
@endif @endif
{{-- METAS --}} @php if (!isset($componentable)) { $componentable = $post ?? $taxonomy ?? null; if (empty($componentable)) { $componentable = App\Post::where('slug', trim(parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH), '/'))->where('post_type', 'Modules\Page\Entities\Page')->first(); } } @endphp @if (isset($componentable)) @php $metas = $componentable->getFilledMeta(); @endphp @if (isset($metas)) @foreach ($metas as $meta) {!! $meta !!} @endforeach @endif @endif
@php $canonical_path = trim(request()->path(), '/'); $canonical_url = rtrim(config('app.url'), '/') . ($canonical_path ? '/' . $canonical_path : ''); @endphp
@php $og_image = $post->og_image ?? $post->featured_image ?? null; if ($og_image) { $og_image_local = $_SERVER['DOCUMENT_ROOT'].$og_image; if (file_exists($og_image_local)) { $og_image_data = getimagesize($og_image_local); } else { $og_image = null; } } @endphp @if ($og_image)
@endif
@if (isset($site) && $site->favicon)
@endif @if (isset($site) && $site->discourage_search)
@endif @if (isset($link_rel) && !empty($link_rel['href']) && !empty($link_rel['hreflang']))
@endif {{-- Google Tag Manager (noscript - Script in seo.js) --}}
@if (Auth::user())
Manage Website
@if(isset($post) && is_object($post))
Clear Page Cache
@endif
{{ round((microtime(true) - LARAVEL_START ), 2) }} seconds
@endif