@extends('user.layout.master') @section('title', 'Subscription') @section('content') @if (Auth::user()->hasActiveSubscription())
Subscription
@foreach($subscriptions as $subscription) @php $interval = $subscription->interval; $priceJson = data_get($subscription->plan, 'price', []); $price = $interval === 'year' ? (data_get($priceJson, 'yearly_price')) : (data_get($priceJson, 'monthly_price')); @endphp
{{ $subscription->plan->title ?? '—' }}
Active Subscription
@if(!is_null($price))
${{ number_format((float)$price, 2) }} /{{ $interval === 'year' ? 'year' : 'month' }}
@else
$
@endif
$239.88/year
Save $48.89
@if(!empty($subscription->plan->description))
{{ $subscription->plan->description ?? '—' }}
@endif {{--
Choose from 4 professional PDF designs to match your style.
Get AI-powered content suggestions to enhance your resume.
--}}
Next billing date: {{ optional($subscription->current_period_end)->toFormattedDateString() ?? '—' }}
@endforeach
@else
Subscription
No Active Subscription
Upgrade to plan to unlock unlimited downloads and multiple PDF designs.
{{--
Monthly Subscription
$19.99 /month
Download your resumes as many times as you need in multiple formats.
Choose from 4 professional PDF designs to match your style.
Get AI-powered content suggestions to enhance your resume.
Yearly Subscription
Best Value – 20% Off
$190.99 /year
Download your resumes as many times as you need in multiple formats.
Choose from 4 professional PDF designs to match your style.
Get AI-powered content suggestions to enhance your resume.
Upgrade Plan
--}}
@endif @endsection