@extends('layouts.public') @section('title', config('app.name') . ' – Choose Your Plan') @section('description', 'Select a plan to unlock full access to the API marketplace.') @push('styles') @endpush @section('content')
{{-- ── HERO ── --}}
Access Required

Unlock Full Access

Choose a plan to start using the API marketplace. Cancel or upgrade anytime with no lock-in.

@auth
{{ strtoupper(substr(auth()->user()->name, 0, 2)) }}
Logged in as {{ auth()->user()->email }}
@endauth
{{-- ── PLANS ── --}}
@if($plans->isNotEmpty())
@foreach ($plans->sortBy('price') as $index => $plan) @php $features = is_string($plan->features) ? json_decode($plan->features, true) : ($plan->features ?? []); $isFeatured = $plan->code === 'PLAN02' || ($plans->count() > 1 && $index === 1); @endphp
@if($isFeatured) @endif
{{ $plan->name }} {{ $plan->change_period_in_months == 1 ? 'Monthly' : $plan->change_period_in_months . ' Months' }}
LKR{{ number_format($plan->price, 2, '.', ',') }} /mo

{{ $plan->description }}

    @if(!empty($features)) @foreach ($features as $feature)
  • {{ $feature }}
  • @endforeach @else
  • Full API access
  • @endif
{{-- Subscribe button — wire up route when payment is ready --}} {{ auth()->user()->activeUserPlan() ? 'Change Plan' : 'Get' }} {{ $plan->name }}
@endforeach
{{-- Trust indicators --}}
Cancel anytime
Instant activation
Secure checkout
Priority support
@else

No plans available

Plans are being set up. Please check back soon or contact support.

@endif
{{-- ── PLAN CONFIRMATION MODAL ── --}} @endsection @push('scripts') @endpush