agregar saldo solo super
This commit is contained in:
@@ -329,7 +329,7 @@
|
||||
@if ($consulta_verUsuarios)
|
||||
@if ($consulta_verUsuarios->estado == 'pendiente')
|
||||
@if (count($consulta_verUsuarios->historiales) != $consulta_verUsuarios->servicio->completa)
|
||||
@if (Auth::user()->rol->nombre != 'editor')
|
||||
@if (Auth::user()->rol->nombre == 'super')
|
||||
<span class="mr-4">
|
||||
<button wire:click="openAdd" type="button" class="inline-flex justify-center w-full rounded-md border border-transparent px-4 py-2 sm:mb-[0] mb-2 text-white bg-[#B221FD] hover:bg-[#7a02b8] focus:shadow-outline-green ease-in-out sm-text-sm sm-leading-5 ">Añadir usuario</button>
|
||||
</span>
|
||||
@@ -337,7 +337,7 @@
|
||||
@endif
|
||||
@else
|
||||
@if (count($consulta_verUsuarios->historiales) != $consulta_verUsuarios->servicio->pantallas)
|
||||
@if (Auth::user()->rol->nombre != 'editor')
|
||||
@if (Auth::user()->rol->nombre == 'super')
|
||||
<span class="mr-4">
|
||||
<button wire:click="openAdd" type="button" class="inline-flex justify-center w-full rounded-md border border-transparent px-4 py-2 sm:mb-[0] mb-2 text-white bg-[#B221FD] hover:bg-[#7a02b8] focus:shadow-outline-green ease-in-out sm-text-sm sm-leading-5 ">Añadir usuario</button>
|
||||
</span>
|
||||
|
||||
@@ -70,21 +70,26 @@
|
||||
<th class="font-normal">Rol</th>
|
||||
<th class="font-normal">Ventas</th>
|
||||
<th class="font-normal">Saldo</th>
|
||||
@if (auth()->user()->rol->nombre == 'super')
|
||||
<th class="font-normal"></th>
|
||||
@endif
|
||||
<th class="rounded-r-lg font-normal"></th>
|
||||
</tr>
|
||||
</x-slot>
|
||||
<x-slot name="tbody">
|
||||
@foreach ($usuarios as $usuario)
|
||||
<tr class="border-gray-200 text-left" x-data="{ openOption: false }">
|
||||
<td>{{$usuario->name ?? '' }}</td>
|
||||
<td>{{$usuario->email ?? '' }}</td>
|
||||
<td>{{$usuario->rol->nombre ?? '' }}</td>
|
||||
<td>{{$usuario->historiales_venta_count ?? '' }}</td>
|
||||
<td>{{$usuario->saldo->valor ?? '' }}</td>
|
||||
<tr class="border-gray-200 text-left" x-data="{ openOption: false }">
|
||||
<td>{{$usuario->name ?? '' }}</td>
|
||||
<td>{{$usuario->email ?? '' }}</td>
|
||||
<td>{{$usuario->rol->nombre ?? '' }}</td>
|
||||
<td>{{$usuario->historiales_venta_count ?? '' }}</td>
|
||||
<td>{{$usuario->saldo->valor ?? '' }}</td>
|
||||
|
||||
@if (auth()->user()->rol->nombre == 'super')
|
||||
<td>
|
||||
<button wire:click="saldo({{ $usuario->id }})" class="justify-center text-sm flex px-2 py-1 rounded-lg cursor-pointer text-white bg-[#B221FD] hover:bg-[#7a02b8] mb-0 md:mb-0">Recargar</button>
|
||||
</td>
|
||||
@endif
|
||||
<td>
|
||||
<button x-on:click="openOption=!openOption">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"
|
||||
|
||||
Reference in New Issue
Block a user