@extends('layouts.app') @section('titulo', 'Gestión de Personal') @section('contenido')
| Usuario | Correo | Teléfono | Local | Rol | Estado | Acciones |
|---|---|---|---|---|---|---|
|
{{ $u->iniciales() }}
{{ $u->name }} @if($u->id === auth()->id())(tú)@endif
|
{{ $u->email }} | {{ $u->telefono ?: '—' }} | {{ $u->local->nombre ?? 'Sin asignar' }} | @php $rc = ['admin'=>'bg-purple-50 text-purple-700','farmaceutico'=>'bg-sky-50 text-sky-700','cajero'=>'bg-amber-50 text-amber-700','vendedor'=>'bg-slate-100 text-slate-600']; @endphp {{ $roles[$u->rol] ?? $u->rol }} | @if ($u->activo) Activo @else Inactivo @endif |
@if ($u->id !== auth()->id())
@endif
|