<flux:main>
    <div class="flex justify-between items-center">
        <div>
            <flux:heading size="xl">{{ $pageTitle }}</flux:heading>
        </div>
        @can('create restock')
            <div>
                <flux:button href="{{ route('studio.manage.restock.create') }}" variant="primary" wire:navigate
                    class="text-sm">
                    Tambah
                </flux:button>
            </div>
        @endcan
    </div>

    <div class="mt-6">
        <flux:callout icon="megaphone" color="blue" class="mb-6">
            <flux:callout.heading>Informasi</flux:callout.heading>
            <flux:callout.text>
                Menghapus data restock otomatis mengembalikan stok gudang.
            </flux:callout.text>
        </flux:callout>

        <livewire:datatable.manage.restocks-table />
    </div>

    @include('components.modals.confirmation', [
        'modalName' => 'delete-confirmation',
        'modalTitle' => 'Apakah Anda yakin?',
        'modalMessage' => 'Data restock akan dihapus dari riwayat.',
        'buttonVariant' => 'primary',
        'buttonColor' => 'danger',
        'buttonText' => 'Ya, Hapus',
    ])
</flux:main>
