entrega de premios desde boton

This commit is contained in:
Felipe
2024-03-06 15:05:42 -05:00
parent 3d1eac3801
commit fbf1f43a09
2 changed files with 37 additions and 7 deletions
+6 -7
View File
@@ -9,17 +9,15 @@
</div>
{{-- tabla --}}
<div
class="mx-auto bg-white grid grid-cols-1 lg:grid-cols-1text-center rounded-xl py-4 px-2 ms:px-8 shadow-md xl:mx-10 mb-8 ">
<div class="mx-auto bg-white grid grid-cols-1 lg:grid-cols-1text-center rounded-xl py-4 px-2 ms:px-8 shadow-md xl:mx-10 mb-8 ">
<p class="text-center font-semibold text-base sm:text-2xl">Mejores distribuidores del mes</p>
<div class="text-center w-full">
<img src="{{ asset($configuracion->img_top) }}" alt=""
class="object-cover h-24 sm:h-48 w-full rounded-lg shadow my-3">
<img src="{{ asset($configuracion->img_top) }}" alt="" class="object-cover h-24 sm:h-48 w-full rounded-lg shadow my-3">
<p class=" text-sm sm:text-base my-2 ">{{ $configuracion->mensaje_top }}</p>
</div>
<div class="flex items-center">
<div class="flex items-center justify-between mx-8 my-4">
<label class="inline-flex items-center cursor-pointer">
<input type="checkbox" wire:model="showLastMonth" class="hidden" />
@if ($showLastMonth)
@@ -33,10 +31,11 @@
@endif
<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>
</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">
<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">
<thead class="font-normal bg-[#000029] text-white h-9">
<tr class="text-left">
<th class="rounded-l-lg font-normal pl-[1rem] sm:pl-[2rem]"></th>