@props([ 'automation', 'cardClass' => 'shadow-sm', 'modelId' => null, 'modelType' => null, 'variant' => 'default', // default, history, global 'showContent' => true, 'showProgress' => true, 'showToggle' => true, 'collapsible' => true, 'compact' => true, 'colorClass' => 'blue', 'hasGradient' => false, 'modal' => '', 'disabled' => false, ]) @php $colorClass = $variant === 'global' ? 'indigo' : ($colorClass ?? $automation->type_color ?? 'indigo'); $isGlobal = $variant === 'global'; $isHistory = $variant === 'history'; $showEdit = request()->routeIs('notification_automations_manager') || $automation->scheduledNotification->receiver_id; // Determine if automation is completed $isCompleted = isset($automation->is_active) && !$automation->is_active; // Check if disabled (from prop or automation object) $isDisabled = $disabled || (isset($automation->is_disabled) && $automation->is_disabled); @endphp @if($compact) {{-- Compact Version --}}