boton premios solo para administradores y supers

This commit is contained in:
Felipe
2024-03-06 19:03:03 -05:00
parent fbf1f43a09
commit c36c6d44d9
+3 -1
View File
@@ -32,7 +32,9 @@
<div class="ml-2 font-medium text-gray-700">Mostrar resultados del mes pasado</div>
</label>
<x-primary-button wire:click="entregarPremio" class="ml-4">Entregar premio de {{ Carbon\Carbon::now()->subMonth()->format('M') }}</x-primary-button>
@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>
@endif
</div>
<table class="sm:text-base text-sm text-center rounded-lg shadow-lg m-auto sm:mt-4 mb-4 border-separate border-spacing-y-2" wire:loading.class="opacity-50 cursor-wait">