@foreach($packages as $package)
@php
$features = $package->featureList();
$monthly = $package->formattedPrice('monthly');
$yearly = $package->formattedPrice('yearly');
$periodMonthly = $package->is_free || $package->is_custom ? '' : '/month';
$periodYearly = $package->is_free || $package->is_custom ? '' : '/year';
@endphp
@if($package->badge || $package->is_featured)
{{ $package->badge ?: 'Recommended' }}
@endif
{{ $package->name }}
@if($package->tagline)
{{ $package->tagline }}
@endif
{{ $monthly }}
{{ $periodMonthly }}
@if($package->trial_days > 0 && ! $package->is_custom)
{{ $package->trial_days }}-day free trial
@elseif($package->description)
{{ \Illuminate\Support\Str::limit($package->description, 90) }}
@else
@endif
{{ $package->cta_label }}
@if(count($features))
@foreach($features as $feature)
- {{ $feature }}
@endforeach
@endif