@extends('layouts.app') @section('title', 'Mi Perfil') @section('content')

Mi Perfil

Información Personal
@csrf @method('PUT')
@error('nombre')
{{ $message }}
@enderror
@error('apellido')
{{ $message }}
@enderror
@error('cedula')
{{ $message }}
@enderror
@error('email')
{{ $message }}
@enderror
@error('telefono')
{{ $message }}
@enderror
Cambiar Contraseña (Opcional)
@error('current_password')
{{ $message }}
@enderror
@error('new_password')
{{ $message }}
@enderror
{{ substr(auth()->user()->name, 0, 1) }}
{{ auth()->user()->name }}

{{ auth()->user()->email }}

@if(auth()->user()->email_verified_at) Email Verificado @else Email Pendiente @endif
Miembro desde: {{ auth()->user()->created_at->format('d/m/Y') }}
Mis Roles
@if(auth()->user()->roles->count() > 0) @foreach(auth()->user()->roles as $role)
{{ $role->nombre }} {{ $role->descripcion }}
@endforeach @else

No tienes roles asignados

@endif
Actividad Reciente
@php $actividadReciente = auth()->user()->kardexGeneral()->with('tipoAccion')->latest()->limit(5)->get(); @endphp @if($actividadReciente->count() > 0) @foreach($actividadReciente as $actividad)
{{ $actividad->tipoAccion->nombre ?? 'Acción' }}
{{ $actividad->created_at->diffForHumans() }}
@endforeach @else

No hay actividad reciente

@endif
@push('styles') @endpush @push('scripts') @endpush @endsection