@php
// Helper to get RGB for CSS variables
if(!function_exists('hex2rgb_local')) {
function hex2rgb_local($hex) {
$hex = str_replace('#', '', $hex ?? '#6366f1');
if(strlen($hex) == 3) {
$r = hexdec(substr($hex, 0, 1) . substr($hex, 0, 1));
$g = hexdec(substr($hex, 1, 1) . substr($hex, 1, 1));
$b = hexdec(substr($hex, 2, 1) . substr($hex, 2, 1));
} else {
$r = hexdec(substr($hex, 0, 2));
$g = hexdec(substr($hex, 2, 2));
$b = hexdec(substr($hex, 4, 2));
}
return "$r, $g, $b";
}
}
$primaryRgb = $primaryRgb ?? hex2rgb_local($primaryColor ?? '#6366f1');
$allSettings = \App\Models\Setting::group('auth');
@endphp
@yield('title') — {{ $brandName }}
@vite(['resources/css/app.css', 'resources/js/app.js'])
@if(request()->is('register'))
Sell Digital Products Worldwide.
@else
{{ $allSettings['auth_marketing_title'] ?? 'Your workspace, reimagined.' }}.
@endif
@if(request()->is('register'))
Launch your digital business and start earning today.
@else
{{ $allSettings['auth_marketing_description'] ?? 'Sell digital products, manage payouts, and grow your business — all from one powerful platform.' }}
@endif
@if(request()->is('register'))
@foreach([
['icon' => 'zap', 'title' => 'Live in 60 seconds', 'desc' => 'Create your store instantly with AI assistance'],
['icon' => 'dollar-sign', 'title' => 'Zero fees to start', 'desc' => 'Keep more of what you earn'],
['icon' => 'globe', 'title' => 'Sell in 150+ countries', 'desc' => 'Multi-currency and localized checkout']
] as $feature)
{{ $feature['title'] }}
{{ $feature['desc'] }}
@endforeach
{{-- Stats Row (same as login) --}}
{{-- Testimonial (same as login) --}}
"Made $34,000 in my first 3 months with zero prior experience selling online. DigitalStore just works."
SM
Sara Mensah
Creator • Novara Studio
@else
"Made $34,000 in my first 3 months with zero prior experience selling online. DigitalStore just works."
SM
Sara Mensah
Creator • Novara Studio
@endif
© {{ date('Y') }} {{ $brandName }}
Elite Commerce Architecture
@yield('scripts')