{{-- Alert Box Organism - Luxury Edition (Atomic Composable v2.0) Subtle status messages with warm neutral background and colored left border accent All variants share same background - differentiated by border color only (sophisticated) Note: All design tokens auto-injected via View Composer Uses centralized variant definitions from config/emails.php Usage: @component('emails.organisms.alert-box', [ 'variant' => 'success', // success|warning|error|info 'title' => 'Success!' // Optional ]) Your action was completed successfully. @endcomponent --}} @php $variant = $variant ?? 'info'; // Get variant config from centralized design tokens $variantConfig = $alertVariants[$variant] ?? $alertVariants['info']; $bg = $colors[$variantConfig['bg']] ?? '#faf8f5'; $borderColor = $colors[$variantConfig['border']] ?? '#be8c3c'; @endphp
|
@if(isset($title))
@component('emails.atoms.h3', ['colors' => $colors])
{{ $title }}
@endcomponent
@endif
@component('emails.atoms.text', ['colors' => $colors])
{{ $slot }}
@endcomponent
|