@extends('layouts.platform') @section('title', 'Plans') @section('header', 'Subscription Plans') @section('content')

Manage subscription plans and their features.

+ New Plan
@forelse($plans as $plan)
@if($plan->is_active)
Active
@else
Inactive
@endif

{{ $plan->name }}

{{ $plan->description }}

@if($plan->billingType() === 'trial') Free trial @elseif($plan->billingType() === 'per_student') ₦{{ number_format((float) $plan->per_student_price ?? 0, 0) }} / student @else ₦{{ number_format($plan->price, 0) }} /{{ $plan->billing_period === 'yearly' ? 'year' : 'month' }} @endif
{{ str_replace('_', ' ', ucwords($plan->billingType(), '_')) }}
Students {{ number_format($plan->max_students) }}
Teachers {{ number_format($plan->max_teachers) }}
Classes {{ number_format($plan->max_classes) }}
Schools on plan {{ $plan->schools_count }}
@if($plan->features)

Features

@foreach($plan->features as $feature) {{ ucfirst($feature) }} @endforeach
@endif
Edit
@csrf @method('DELETE')
@empty

No plans created yet.

Create your first plan
@endforelse
@endsection