agregar saldo solo super
This commit is contained in:
@@ -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