@props(['service', 'variant' => 'default']) @php use Illuminate\Support\Facades\Storage; $cardClasses = match($variant) { 'featured' => 'bg-white rounded-2xl shadow-lg hover:shadow-2xl transition-all duration-500 border border-gray-100 group transform hover:-translate-y-2 overflow-hidden', 'compact' => 'bg-white rounded-xl shadow-md hover:shadow-xl transition-all duration-300 border border-gray-50 group overflow-hidden', default => 'bg-white rounded-2xl shadow-lg hover:shadow-xl transition-all duration-300 border border-gray-100 group overflow-hidden' }; $iconSize = match($variant) { 'featured' => 'text-5xl', 'compact' => 'text-4xl', default => 'text-5xl' }; $titleSize = match($variant) { 'featured' => 'text-2xl', 'compact' => 'text-xl', default => 'text-2xl' }; @endphp
@if($service->image && file_exists(public_path('storage/' . $service->image)))
{{ $service->title }}
@if($service->is_featured)
Unggulan
@endif
@elseif($service->icon)
@if($service->is_featured)
Unggulan
@endif
@else
@if($service->is_featured)
Unggulan
@endif
@endif

{{ $service->title }}

{{ $service->short_description }}

@push('styles') @endpush