{{-- Feature Highlight Component - Highlights new or important features Usage: --}} @props([ 'title' => 'Nouvelle fonctionnalité', 'description' => '', 'icon' => 'sparkles', 'new' => true, 'ctaText' => null, 'ctaUrl' => null, 'dismissible' => true, 'storageKey' => null, 'color' => 'indigo', 'image' => null ]) @php $key = $storageKey ?? 'feature_' . \Illuminate\Support\Str::slug($title); $colorClasses = [ 'indigo' => ['from' => 'from-indigo-500', 'to' => 'to-purple-600', 'light' => 'bg-indigo-50', 'text' => 'text-indigo-600', 'border' => 'border-indigo-200'], 'blue' => ['from' => 'from-blue-500', 'to' => 'to-cyan-600', 'light' => 'bg-blue-50', 'text' => 'text-blue-600', 'border' => 'border-blue-200'], 'green' => ['from' => 'from-green-500', 'to' => 'to-emerald-600', 'light' => 'bg-green-50', 'text' => 'text-green-600', 'border' => 'border-green-200'], 'orange' => ['from' => 'from-orange-500', 'to' => 'to-red-600', 'light' => 'bg-orange-50', 'text' => 'text-orange-600', 'border' => 'border-orange-200'], ]; $colors = $colorClasses[$color] ?? $colorClasses['indigo']; @endphp
{{-- Background pattern --}}
{{-- Icon --}}
@if($image) @else @endif
{{-- Content --}}
@if($new) ✨ NOUVEAU @endif

{{ $title }}

{{ $description }}

{{-- CTA --}} @if($ctaText && $ctaUrl) {{ $ctaText }} @endif {{-- Dismiss button --}} @if($dismissible) @endif