@php
$cms = $cms ?? [];
$siteName = data_get($cms, 'branding.site_name') ?: data_get($cms, 'branding.brand_name', config('app.name'));
$faviconPath = data_get($cms, 'branding.favicon_url');
$faviconUrl = $faviconPath
? (\Illuminate\Support\Str::startsWith($faviconPath, ['https://', 'http://', '/']) ? $faviconPath : asset($faviconPath))
: asset('adm/images/favicon.png');
@endphp
@yield('portal_title', 'Sign In') ยท {{ $siteName }}
@if(empty($matchedClientDesign))
@yield('portal_vendor_styles')
@elseif(trim($__env->yieldContent('client_auth_page')) === 'register')
{{-- The searchable picker keeps its own structural CSS. Matched auth
supplies its complete form system without Bootstrap's page reset. --}}
@endif
@yield('portal_style')
@include('shared.toastr')
@yield('portal_language_assets')
@yield('portal_content')
@yield('portal_scripts')