@extends('layouts.app')

@section('title', 'Add Coupon')
@section('heading', 'Add Coupon')

@section('content')
<div class="mx-auto max-w-xl">
    <x-superadmin.page-header
        eyebrow="Billing"
        title="Add coupon"
        subtitle="Create a checkout discount code for yearly plans."
    />

    <div class="rounded-2xl border border-slate-200 bg-white p-5 shadow-sm sm:p-6">
        <form action="{{ route('superadmin.coupons.store') }}" method="post" class="space-y-5">
            @csrf
            @include('superadmin.coupons._form')
            <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</button>
                <a href="{{ route('superadmin.coupons.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>
</div>
@endsection
