premios fixed

This commit is contained in:
Felipe
2024-03-07 10:55:42 -05:00
parent c36c6d44d9
commit cd68c1d966
5 changed files with 99 additions and 4 deletions
+8 -1
View File
@@ -33,7 +33,14 @@
</label>
@if (Auth::user()->rol->nombre == 'super' || Auth::user()->rol->nombre == 'administrador')
<x-primary-button wire:click="entregarPremio" class="ml-4">Entregar premio de {{ Carbon\Carbon::now()->subMonth()->format('M') }}</x-primary-button>
<div class="flex flex-col items-center justify-center">
<x-primary-button wire:click="entregarPremio" class="ml-4 disabled:cursor-not-allowed" :disabled="$consultaPremioEntregado">Entregar premios de {{ Carbon\Carbon::now()->subMonth()->format('M') }}</x-primary-button>
@if ($consultaPremioEntregado)
<span class="text-xs pt-1 text-gray-400 cursor-not-allowed">
Los premios del mes de {{ Carbon\Carbon::now()->subMonth()->format('M') }} ya fueron entregados
</span>
@endif
</div>
@endif
</div>