@extends('layouts.dashboard') @section('title', 'My Profile') @section('page-content')

My Profile

Manage your account information and password

Personal Information

@csrf @method('PUT')
@error('name')

{{ $message }}

@enderror
@error('email')

{{ $message }}

@enderror
@error('phone')

{{ $message }}

@enderror
@error('gender')

{{ $message }}

@enderror

This affects your dashboard theme and appearance

@error('address')

{{ $message }}

@enderror

Change Password

@csrf
@error('current_password')

{{ $message }}

@enderror
@error('password')

{{ $message }}

@enderror

Minimum 8 characters

Account Info

#{{ $user->id }}

{{ $user->is_active ? 'Active' : 'Inactive' }}

{{ $user->created_at->format('M d, Y') }}

{{ $user->updated_at->diffForHumans() }}

Roles

@if($user->roles->count() > 0)
@foreach($user->roles as $role)
{{ $role->name }}
@endforeach
@else

No roles assigned

@endif
@if($user->student)

My Academic Info

Student ID {{ $user->student->student_id }}
Program {{ $user->student->program->name ?? 'N/A' }}
Status {{ $user->student->status }}
@endif @if($user->staff)

My Staff Info

Staff ID {{ $user->staff->staff_id }}
Position {{ $user->staff->position }}
Department {{ $user->staff->department->name ?? 'N/A' }}
@endif
@endsection