<script setup lang="ts">
import { Head } from '@inertiajs/vue3';
import OwnerVerificationPendingSection from './table/OwnerVerificationPendingSection.vue';
import AdminLayout from '@/layouts/AdminLayout.vue';
import type { CuttingListItem } from '@/types/cutting';

defineProps<{
    pendingCuttings: CuttingListItem[];
}>();
</script>

<template>
    <Head title="Verifikasi Owner" />

    <AdminLayout>
        <div class="flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between">
            <div class="space-y-1">
                <h2 class="text-2xl font-bold tracking-tight">
                    Verifikasi Owner
                </h2>
                <p class="text-muted-foreground text-sm">
                    Persetujuan verifikasi stok cutting oleh owner.
                </p>
            </div>
        </div>

        <OwnerVerificationPendingSection :cuttings="pendingCuttings" />
    </AdminLayout>
</template>
