All Plans

@if(session('success'))
{{ session('success') }}
@endif
@forelse($plans as $plan) @empty @endforelse
ID Title Status Price Actions
{{ $plan->id }} {{ $plan->title }} {{ $plan->status ? 'Active' : 'Inactive' }} @php $monthly = data_get($plan->price, 'monthly_price'); $yearly = data_get($plan->price, 'yearly_price'); @endphp @if(!is_null($monthly) || !is_null($yearly)) @php $parts = []; if(!is_null($monthly)) { $parts[] = (is_numeric($monthly) ? number_format((float) $monthly, 2) : $monthly) . ' / mo'; } if(!is_null($yearly)) { $parts[] = (is_numeric($yearly) ? number_format((float) $yearly, 2) : $yearly) . ' / yr'; } @endphp {{ implode(' · ', $parts) }} @else — @endif
@csrf @method('DELETE')
No plans found.
{{ $plans->links() }}