feat(reward tier): menambahkan gap pada table

This commit is contained in:
Yoga Pangestu 2025-11-09 20:09:38 +07:00
parent 2a7ccac081
commit b0649a1a65

View File

@ -17,25 +17,28 @@
<flux:table.cell>{{ $reward['name'] }}</flux:table.cell>
<flux:table.cell>{{ $reward['value'] }}</flux:table.cell>
<flux:table.cell>
@can('update tier reward')
<flux:modal.trigger name="reward-form-modal">
<flux:tooltip content="Ubah">
<flux:button variant="primary" color="yellow" icon="pencil-square" size="sm"
wire:click="$dispatch('modal:open:reward', {method: 'update', 'modalTitle': 'Ubah Hadiah', 'tier_id': '{{ $reward['tier_id'] }}', 'id' : '{{ $reward['hash'] }}'})">
</flux:button>
</flux:tooltip>
</flux:modal.trigger>
@endcan
<div class="flex gap-2 pt-2 border-gray-200 dark:border-gray-700">
@can('update tier reward')
<flux:modal.trigger name="reward-form-modal">
<flux:tooltip content="Ubah">
<flux:button variant="primary" color="yellow" icon="pencil-square"
size="sm"
wire:click="$dispatch('modal:open:reward', {method: 'update', 'modalTitle': 'Ubah Hadiah', 'tier_id': '{{ $reward['tier_id'] }}', 'id' : '{{ $reward['hash'] }}'})">
</flux:button>
</flux:tooltip>
</flux:modal.trigger>
@endcan
@can('update tier reward')
<flux:modal.trigger name="delete">
<flux:tooltip content="Hapus">
<flux:button variant="danger" icon="trash" size="sm"
wire:click="$dispatch('fn:confirmDelete', {id: '{{ $reward['hash'] }}'})">
</flux:button>
</flux:tooltip>
</flux:modal.trigger>
@endcan
@can('update tier reward')
<flux:modal.trigger name="delete">
<flux:tooltip content="Hapus">
<flux:button variant="danger" icon="trash" size="sm"
wire:click="$dispatch('fn:confirmDelete', {id: '{{ $reward['hash'] }}'})">
</flux:button>
</flux:tooltip>
</flux:modal.trigger>
@endcan
</div>
</flux:table.cell>
</flux:table.row>
@endforeach