@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)
 config('filesystems.branding_disk', 'public') === 'public' ? asset('storage/' . ltrim($appLogo, '/')) : Storage::disk((string) config('filesystems.branding_disk', 'public'))->url($appLogo) }})
@if($hasLogoDark)
 config('filesystems.branding_disk', 'public') === 'public' ? asset('storage/' . ltrim($appLogoDark, '/')) : Storage::disk((string) config('filesystems.branding_disk', 'public'))->url($appLogoDark) }})
@endif
@else
@endif
{{ __('Create Account') }}
{{ __('Create your account to access your dashboard.') }}
@if(session('error'))
@endif
@if(session('success'))
@endif
@if($errors->any())
{{ __('There were errors with your submission') }}
@foreach($errors->all() as $error)
- {{ $error }}
@endforeach
@endif
{{ __('Revolutionize Email Marketing with Smarter Automation') }}
{{ __('"MailPurse has completely transformed our email marketing process. It\'s reliable, efficient, and ensures our campaigns are always top-notch."') }}
Michael Carter
Marketing Director at TechCorp
{{ __('JOIN 1K+ TEAMS') }}
Discord
Mailchimp
Grammarly
Attentive
Hellosign
Intercom
Square
Dropbox
@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 !== '')
@endif
@endforeach
@endif