@include('shared.toastr') @php try { $cms = function_exists('cms') ? (cms() ?? []) : app(\App\Services\CmsSettingsService::class)->get(); } catch (\Throwable $e) { $cms = []; } $branding = data_get($cms, 'branding', []); $brandName = data_get($branding, 'brand_name', env('APP_NAME')); $faviconUrl = data_get($branding, 'favicon_url'); $faviconUrl = $faviconUrl ? (\Illuminate\Support\Str::startsWith($faviconUrl, ['http://','https://','/']) ? $faviconUrl : asset($faviconUrl)) : asset('adm/images/favicon.png'); @endphp