@extends('user.layout.master') @section('title', 'Plans & Pricing') @section('content')
Plans & Pricing
{{-- If no plans available --}} @if ($plans->isEmpty())
No Plans Available
There are currently no subscription plans available. Please check back later.
@else
@foreach ($plans as $plan) @php $monthly = data_get($plan->price, 'monthly_price'); $yearly = data_get($plan->price, 'yearly_price'); $features = (array) data_get($plan->condition, 'features', []); @endphp {{-- Monthly Plan --}} @if ($monthly)
{{ $plan->title }}
${{ number_format((float) $monthly, 2) }} /month
@if (!empty($plan->description))
{{ $plan->description }}
@else
No Description listed
@endif
@csrf
@endif {{-- Yearly Plan --}} @if ($yearly)
{{ $plan->title }}
Best Value – Save {{ $monthly ? round((($monthly * 12 - $yearly) / ($monthly * 12)) * 100) : 0 }}%
${{ number_format((float) $yearly, 2) }} /year
@if (!empty($plan->description))
{{ $plan->description }}
@else
No Description listed
@endif
@csrf
@endif @endforeach
@endif
@endsection