This commit is contained in:
lizandrogd
2025-07-07 15:56:47 -05:00
parent c502a57a51
commit 49311a6ecb
3 changed files with 14 additions and 2 deletions
@@ -72,6 +72,9 @@
<x-primary-table>
<x-slot name="thead">
<tr class="text-left">
@if (auth()->user()->rol_id == 5)
<th class="rounded-l-lg px-6 py-2">Subvendedor</th>
@endif
<th class="rounded-l-lg font-normal">Nombre</th>
<th class="font-normal">Email</th>
<th class="font-normal">Rol</th>
@@ -85,6 +88,10 @@
<x-slot name="tbody">
@foreach ($usuarios as $usuario)
<tr class="border-gray-200 text-left" x-data="{ openOption: false }">
@if (auth()->user()->rol_id == 5)
<td>{{ $usuario->subvendedor_relacion->name ?? 'N/A' }}</td>
@endif
<td>{{ $usuario->name ?? '' }}</td>
<td>{{ $usuario->email ?? '' }}</td>
<td>{{ $usuario->rol->nombre ?? '' }}</td>