@extends('layouts.app')
@section('title', 'Plans & Pricing')
@push('styles')
@endpush
@section('content')
@if(session('success'))
Choose Your Plan
Upgrade anytime. Cancel anytime. All prices in USD.
@foreach($plans as $plan)
@php
$isCurrent = in_array($currentPlanId, [$plan->id, $plan->yearly_id ?? 0]);
$cardClass = $isCurrent ? 'current' : ($plan->badge ? 'featured' : '');
$isPremium = $plan->plan_type === 'premium';
$isFamily = $plan->plan_type === 'family';
$isStarter = $plan->plan_type === 'starter';
@endphp
@if($plan->badge)
{{ $plan->badge }}
@endif
@if($isStarter)
@elseif($isPremium)
@else
@endif
{{ $plan->name }}
{{ $plan->max_users }} {{ $plan->max_users > 1 ? 'Users' : 'User' }}
{{ $plan->description }}
@if($isStarter)
Free
@else
${{ number_format($plan->monthly_price, 0) }}/month
@endif
@if(!$isStarter)
@endif
@foreach($plan->features as $feat)
@endforeach
@endforeach
@endsection