@php $errorLogo = null; $errorTitle = config('app.name', 'Emart'); try { if (Schema::hasTable('genrals')) { $g = \App\Genral::first(); if ($g) { $errorTitle = (\App\Seo::first()->project_name ?? $g->title) ?? $errorTitle; if (!empty($g->logo) && file_exists(public_path('images/genral/' . $g->logo))) { $errorLogo = url('images/genral/' . $g->logo); } } } } catch (\Throwable $e) { /* DB not ready — fall back to text logo */ } @endphp
@if($errorLogo)
@else
{{ strtoupper(substr($errorTitle, 0, 1)) }}
{{ $errorTitle }}
@endif
@yield('content')