@extends('layouts.admin') @section('content')
Gestão de Usuário: {{ $user->name }}
Voltar
@csrf @method('PUT')
{{ $user->username }}
{{ $user->name }}
{{ $user->email }}
@foreach($roles as $role)
hasRole($role->name) ? 'checked' : '' }}>
@endforeach
Log de Atividades Recentes
    @forelse($user->audits()->latest()->take(10)->get() as $audit)
  • {{ $audit->created_at->format('d/m/Y H:i') }}
    {{ $audit->user->name ?? 'Sistema' }} fez um {{ $audit->event }}
    @foreach($audit->getModified() as $attribute => $modified)
    {{ str_replace('_', ' ', $attribute) }}: {{ $modified['old'] ?? '(vazio)' }} {{ $modified['new'] }}
    @endforeach
  • @empty
  • Nenhuma alteração registrada.
  • @endforelse
@endsection @push('scripts') @endpush