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

    <div class="mt-6">
        <livewire:datatable.catalog.bottles-table />
    </div>

    @include('components.modals.confirmation', [
        'modalName' => 'delete-confirmation',
        'modalTitle' => 'Apakah Anda yakin?',
        'modalMessage' => 'Data yang berelasi dengan data ini juga akan ikut terhapus.',
        'buttonVariant' => 'primary',
        'buttonColor' => 'danger',
        'buttonText' => 'Ya, Hapus',
    ])
</flux:main>
