@foreach(Wave\Plan::where('active', 1)->get() as $plan)
@php
$features = array_filter(array_map('trim', explode(',', $plan->features ?? '')));
$hasMonthly = ! empty($plan->monthly_price_id);
$hasYearly = ! empty($plan->yearly_price_id);
$alwaysVisible = ! $hasMonthly && ! $hasYearly;
$monthlyAmount = is_null($plan->monthly_price) ? '—' : $plan->monthly_price;
$yearlyAmount = is_null($plan->yearly_price) ? '—' : $plan->yearly_price;
@endphp
{{ $plan->name }}
€
@if(! empty($features))
@foreach($features as $feature)
-
{{ $feature }}
@endforeach
@endif
Choisir ce plan
@endforeach