up
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user