{{-- Confirm Dialog Component - TailAdmin style For dangerous actions like delete, stop, etc. Usage: --}} @props([ 'title' => 'Confirm Action', 'message' => 'Are you sure you want to proceed?', 'confirmLabel' => 'Confirm', 'cancelLabel' => 'Cancel', 'variant' => 'danger', // danger, warning, primary 'open' => false, ]) @php $variants = [ 'danger' => [ 'icon' => 'ri-error-warning-line', 'iconBg' => 'bg-error-50 dark:bg-error-500/10', 'iconColor' => 'text-error-500', 'buttonClass' => 'bg-error-500 text-white shadow-theme-xs hover:bg-error-600', ], 'warning' => [ 'icon' => 'ri-alert-line', 'iconBg' => 'bg-warning-50 dark:bg-warning-500/10', 'iconColor' => 'text-warning-500', 'buttonClass' => 'bg-warning-500 text-white shadow-theme-xs hover:bg-warning-600', ], 'primary' => [ 'icon' => 'ri-question-line', 'iconBg' => 'bg-brand-50 dark:bg-brand-500/10', 'iconColor' => 'text-brand-500', 'buttonClass' => 'bg-brand-500 text-white shadow-theme-xs hover:bg-brand-600', ], ]; $config = $variants[$variant] ?? $variants['danger']; @endphp
{{ $message }}