@props([ 'name' => 'confirm', 'title' => 'Are you sure?', 'message' => 'This action cannot be undone.', 'confirmText' => 'Confirm', 'cancelText' => 'Cancel', 'confirmVariant' => 'danger', 'icon' => 'alert-triangle', 'iconColor' => 'danger', ]) @php $iconColorClass = match($iconColor) { 'danger' => 'var(--color-danger-500)', 'warning' => 'var(--color-warning-500)', 'primary' => 'var(--color-primary-500)', 'secondary' => 'var(--color-secondary-500)', default => 'var(--color-danger-500)', }; $iconBgClass = match($iconColor) { 'danger' => 'var(--color-danger-50)', 'warning' => 'var(--color-warning-50)', 'primary' => 'var(--color-primary-50)', 'secondary' => 'var(--color-secondary-50)', default => 'var(--color-danger-50)', }; @endphp

{{ $title }}

{{ $message }}

{{ $cancelText }} {{ $confirmText }}