@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 }}
{{-- Force Dark Mode for SaaS 2030 Theme --}}
@vite(['resources/css/app.css', 'resources/js/app.js'])
@if($isSignup)
{{ $headline ?: 'Sell Digital Products Worldwide' }}.
@else
{{ $headline ?: 'Your workspace, reimagined.' }}.
@endif
@if($isSignup)
{{ $description ?: 'Launch your digital business and start earning today.' }}
@else
{{ $description ?: 'Sell digital products, manage payouts, and grow your business — all from one powerful platform.' }}
@endif
@if($isSignup)
@foreach($featuresList as $feature)
{{ $feature['title'] ?? '' }}
{{ $feature['desc'] ?? '' }}
@endforeach
@endif
@foreach($statsList as $stat)
{{ $stat['value'] }}
{{ $stat['label'] }}
@endforeach
@if($testimonial['visible'] ?? true)
{!! $testimonial['quote'] !!}
{{ $testimonial['initials'] }}
{{ $testimonial['author'] }}
{{ $testimonial['role'] }}
@endif
© {{ date('Y') }} {{ $brandName }}
Elite Commerce Architecture
@yield('scripts')