@extends('layouts.recruiter') @section('title', 'Plan & Subscription — JOBES') @section('recruiter_content')
Plan & Subscription
@if($activeSub) Active Subscription @else No Active Plan @endif
@if($activeSub)
Your Current Subscription Details:
Plan Name: {{ $activeSub->plan->name }}
Billing Cycle: {{ $activeSub->plan->billing_cycle }}
Ends On: {{ $activeSub->ends_at ? $activeSub->ends_at->format('d M Y, h:i A') : 'N/A' }}
Subscription ID: {{ $activeSub->razorpay_subscription_id }}
Pricing Plan:

₹{{ number_format($activeSub->plan->price, 0) }}

/ {{ $activeSub->plan->billing_cycle }}
@else
Subscription Required!

You currently do not have an active pricing subscription plan. To post new jobs and access candidate profiles, please choose one of our verified recruitment plans below.

@endif
Available Recruitment Plans:
@foreach($plans as $plan) @php $isCurrent = $activeSub && $activeSub->plan_id == $plan->id; $featuresList = json_decode($plan->features, true) ?? []; // Determine button label and styling $btnText = 'Subscribe Now'; $btnClass = $plan->is_popular ? 'btn-teal-gradient' : 'btn-light border'; $btnStyle = !$plan->is_popular ? 'background:#fff; color:#475569; border-radius:0.5rem; border-color:#cbd5e1 !important;' : ''; if ($activeSub) { if ($isCurrent) { $btnText = 'Current Active Plan'; } elseif ($plan->price > $activeSub->plan->price) { $btnText = 'Upgrade Plan'; $btnClass = 'btn-teal-gradient'; $btnStyle = ''; } else { $btnText = 'Choose Plan'; } } @endphp
@endforeach
@endsection @section('recruiter_styles') @endsection