log general para entrega y reclamo de premios
This commit is contained in:
@@ -3,17 +3,19 @@
|
||||
|
||||
<div class="flex justify-start my-2 items-center mb-4">
|
||||
<div class="flex text-sm">
|
||||
<x-icon-arrow-right/>
|
||||
<x-icon-arrow-right />
|
||||
Distribuidores
|
||||
</div>
|
||||
</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>
|
||||
|
||||
@@ -33,18 +35,23 @@
|
||||
</label>
|
||||
|
||||
@if (Auth::user()->rol->nombre == 'super')
|
||||
<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>
|
||||
<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>
|
||||
|
||||
<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>
|
||||
|
||||
Reference in New Issue
Block a user