<flux:main>
    <div class="flex justify-between items-center">
        <div>
            <flux:heading size="xl">{{ $pageTitle }}</flux:heading>
        </div>
        @can('create purchase')
            <div>
                <flux:button href="{{ route('studio.manage.purchase.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>
                Menghapus data belanja otomatis akan menambah stok.
            </flux:callout.text>
        </flux:callout>

        <livewire:datatable.studio.manage.purchases-table />
    </div>

    @include('components.confirmation.delete')
</flux:main>
