feat(tiers): alert untuk info hadiah
This commit is contained in:
parent
6e0fc82ae0
commit
bfce7b14ff
@ -20,6 +20,22 @@
|
||||
<flux:card
|
||||
class="hover:shadow-lg transition-shadow duration-200 bg-white dark:bg-gray-900 text-gray-900 dark:text-white">
|
||||
<div class="space-y-4">
|
||||
|
||||
@if ($tier['total_rewards'] == 0)
|
||||
<flux:callout icon="exclamation-circle" variant="warning" inline>
|
||||
<flux:callout.heading>Belum ada hadiah untuk tier ini, silakan tambah terlebih dahulu.
|
||||
</flux:callout.heading>
|
||||
|
||||
<x-slot name="actions">
|
||||
<flux:modal.trigger name="reward-form-modal">
|
||||
<flux:button variant="primary" color="primary" size="sm"
|
||||
wire:click="$dispatch('modal:open:reward', {method: 'create', 'modalTitle': 'Tambah Hadiah', 'tier_id': '{{ $tier['id'] }}'})">
|
||||
Tambah</flux:button>
|
||||
</flux:modal.trigger>
|
||||
</x-slot>
|
||||
</flux:callout>
|
||||
@endif
|
||||
|
||||
<div class="flex items-start justify-between">
|
||||
<flux:heading size="lg">{{ $tier['name'] }}
|
||||
</flux:heading>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user