<flux:main>
    <div class="flex justify-between items-center">
        <div>
            <flux:heading size="xl">{{ $pageTitle }}</flux:heading>
        </div>
        @can('create product')
            <div>
                <flux:button href="{{ route('studio.catalog.product.create') }}" variant="primary" wire:navigate.hover
                    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>
                Untuk melihat harga pembelian, silakan klik pada bagian harga. Untuk melakukan audit stok,
                silakan klik pada nama outlet.
            </flux:callout.text>
        </flux:callout>

        <livewire:datatable.studio.catalog.products-table />
    </div>

    @include('components.confirmation.delete')
    @include('components.confirmation.show-price', ['module' => 'product'])
</flux:main>
