<flux:main>
    <div class="flex justify-between items-center">
        <div>
            <flux:heading size="xl">{{ $pageTitle }}</flux:heading>
        </div>
        <div class="flex gap-2">
            @can('view perfume')
                <a href="{{ route('studio.export.perfume') }}" class="inline-flex">
                    <flux:button variant="primary" color="zinc" class="text-sm">
                        Ekspor Ecxel
                    </flux:button>
                </a>
            @endcan
            @can('create perfume')
                <flux:button href="{{ route('studio.catalog.perfume.create') }}" variant="primary" wire:navigate
                    class="text-sm">
                    Tambah
                </flux:button>
            @endcan
        </div>
    </div>

    <div class="mt-6">
        <livewire:datatable.catalog.perfumes-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>
