@vite(['resources/css/app.css', 'resources/js/app.js']) @php try { $brandColor = \App\Models\Setting::get('brand_color', '#3b82f6'); } catch (\Throwable $e) { $brandColor = '#3b82f6'; } $brandColor = is_string($brandColor) ? trim($brandColor) : '#3b82f6'; if ($brandColor === '' || !preg_match('/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/', $brandColor)) { $brandColor = '#3b82f6'; } $brandHex = ltrim($brandColor, '#'); if (strlen($brandHex) === 3) { $brandHex = $brandHex[0] . $brandHex[0] . $brandHex[1] . $brandHex[1] . $brandHex[2] . $brandHex[2]; } $brandR = hexdec(substr($brandHex, 0, 2)); $brandG = hexdec(substr($brandHex, 2, 2)); $brandB = hexdec(substr($brandHex, 4, 2)); $clamp = static fn (int $v): int => max(0, min(255, $v)); $toHex = static function (int $r, int $g, int $b) use ($clamp): string { return sprintf('#%02X%02X%02X', $clamp($r), $clamp($g), $clamp($b)); }; $authGradientFrom = $brandColor; $authGradientTo = $toHex((int) round($brandR * 0.55), (int) round($brandG * 0.55), (int) round($brandB * 0.55)); @endphp
@php use Illuminate\Support\Facades\Storage; try { $appLogo = \App\Models\Setting::get('app_logo'); $appLogoDark = \App\Models\Setting::get('app_logo_dark'); } catch (\Throwable $e) { $appLogo = null; $appLogoDark = null; } $hasLogo = is_string($appLogo) && trim($appLogo) !== ''; $hasLogoDark = is_string($appLogoDark) && trim($appLogoDark) !== ''; try { $googleEnabled = (bool) \App\Models\Setting::get('google_enabled', false); } catch (\Throwable $e) { $googleEnabled = false; } try { $activeLocales = \App\Models\TranslationLocale::query() ->where('is_active', true) ->orderBy('code') ->get(['code', 'name']); } catch (\Throwable $e) { $activeLocales = collect(); } @endphp @if($hasLogo) {{ __('App Logo') }} @if($hasLogoDark) @endif @else
@endif

{{ __('Create Account') }}

{{ __('Create your account to access your dashboard.') }}

@if(session('error'))

{{ session('error') }}

@endif @if(session('success'))

{{ session('success') }}

@endif @if($errors->any())

{{ __('There were errors with your submission') }}

    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf
@if($googleEnabled)
{{ __('OR') }}
@endif

{{ __('Already have an Account?') }} {{ __('Sign In') }}

@if(isset($activeLocales) && $activeLocales instanceof \Illuminate\Support\Collection && $activeLocales->count() > 0)
@foreach($activeLocales as $loc) @php $locCode = is_string($loc->code ?? null) ? trim((string) $loc->code) : ''; $locName = is_string($loc->name ?? null) ? trim((string) $loc->name) : ''; $locLabel = $locName !== '' ? $locName : $locCode; @endphp @if($locCode !== '')
@csrf
@endif @endforeach
@endif