@extends('layouts.app')

@section('title', 'Add Plan')
@section('heading', 'Add Subscription Plan')

@section('content')
<div class="mx-auto max-w-3xl">
    <x-superadmin.page-header
        eyebrow="Billing"
        title="Add plan"
        subtitle="Create a yearly team plan with seat limit and optional discounts."
    />

    <form action="{{ route('superadmin.plans.store') }}" method="post" class="space-y-4">
        @csrf
        @include('superadmin.plans._form', ['plan' => null])
        <div class="flex flex-wrap gap-3 pt-2">
            <button type="submit" class="inline-flex rounded-xl bg-primary px-4 py-2.5 text-sm font-semibold text-white shadow-sm hover:opacity-95">Create plan</button>
            <a href="{{ route('superadmin.plans.index') }}" class="inline-flex rounded-xl border border-slate-200 px-4 py-2.5 text-sm font-semibold text-slate-700 hover:bg-slate-50">Cancel</a>
        </div>
    </form>
</div>
@endsection
