@php $typeStyles = [ 'free' => 'bg-secondary-100 dark:bg-secondary-900/60 text-secondary-600 dark:text-secondary-300', 'basic' => 'bg-primary-50 text-primary-700', 'pro' => 'bg-emerald-50 text-emerald-700', 'enterprise' => 'bg-purple-50 text-purple-700', ]; @endphp
Plans {{ count($plans) }}
@forelse($plans as $plan) @php $type = (string) ($plan['type'] ?? ''); $typeClass = $typeStyles[$type] ?? 'bg-secondary-100 dark:bg-secondary-900/60 text-secondary-600 dark:text-secondary-300'; @endphp @empty @endforelse
Name Type Price
{{ $plan['name'] }} {{ $type ?: 'unknown' }} {{ $plan['currency'] }} {{ number_format((float) $plan['price'], 2) }}
No plans yet.