<script setup lang="ts">
import { Head } from '@inertiajs/vue3';
import { Package } from '@lucide/vue';
import StockPendingSection from './table/StockPendingSection.vue';
import StockVerifiedSection from './table/StockVerifiedSection.vue';
import { Card, CardContent } from '@/components/ui/card';
import AdminLayout from '@/layouts/AdminLayout.vue';
import type { CuttingListItem } from '@/types/cutting';

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

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

    <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 Stok
                </h2>
                <p class="text-muted-foreground text-sm">
                    Verifikasi hasil cutting untuk menambahkan stok produk ke toko.
                </p>
            </div>
        </div>

        <StockPendingSection :cuttings="pendingCuttings" />

        <Card class="min-w-0">
            <CardContent class="min-w-0">
                <StockVerifiedSection :cuttings="verifiedCuttings" />
            </CardContent>
        </Card>
    </AdminLayout>
</template>
