<template>
    <div class="space-y-6">
        <Head title="Card Issuance" />

        <div class="rounded-2xl border border-slate-200 bg-white p-6">
            <div class="flex flex-wrap items-start justify-between gap-4">
                <div>
                    <h3 class="text-lg font-semibold">Card Issuance Hub</h3>
                    <p class="mt-2 text-xs text-slate-500">
                        Use the new issuance flows for pre-generated stock cards or
                        on-demand personalized cards.
                    </p>
                </div>
            </div>

            <div class="mt-6 grid gap-4 md:grid-cols-2">
                <div class="rounded-xl border border-slate-100 bg-slate-50 p-5">
                    <h4 class="text-sm font-semibold text-slate-700">
                        Pre-Generated Cards
                    </h4>
                    <p class="mt-2 text-xs text-slate-500">
                        Create batches, download Perso files, and assign stock cards
                        to clients.
                    </p>
                    <a
                        href="/cards/pre-generated"
                        class="mt-4 inline-flex rounded-lg bg-slate-900 px-4 py-2 text-xs font-semibold text-white"
                    >
                        Open Pre-Generated Flow
                    </a>
                </div>
                <div class="rounded-xl border border-slate-100 bg-slate-50 p-5">
                    <h4 class="text-sm font-semibold text-slate-700">
                        Personalized Cards
                    </h4>
                    <p class="mt-2 text-xs text-slate-500">
                        Create on-demand cards with client personalization and
                        generate Perso files.
                    </p>
                    <a
                        href="/cards/personalized"
                        class="mt-4 inline-flex rounded-lg bg-slate-900 px-4 py-2 text-xs font-semibold text-white"
                    >
                        Open Personalized Flow
                    </a>
                </div>
            </div>
        </div>
    </div>
</template>

<script setup>
import { Head } from '@inertiajs/vue3';
import AuthenticatedLayout from '../../Layouts/AuthenticatedLayout.vue';

defineOptions({
    layout: (h, page) =>
        h(AuthenticatedLayout, { title: 'Card Issuance' }, () => page),
});
</script>
