My Profile
My Profile
← Dashboard
@if(session('status'))
✓ {{ session('status') }}
@endif {{-- Identity card --}}
@if(auth()->user()->avatar) Avatar @else
{{ strtoupper(substr(auth()->user()->name, 0, 1)) }}
@endif
{{ auth()->user()->name }}
{{ auth()->user()->email }}
@if(auth()->user()->telephone)
{{ auth()->user()->telephone }}
@endif {{ auth()->user()->roles->first()?->name ?? 'Staff' }}
{{-- Profile info form --}}
Personal Information
@csrf @method('PATCH')
@error('name')

{{ $message }}

@enderror
@error('email')

{{ $message }}

@enderror
@error('telephone')

{{ $message }}

@enderror

JPG/PNG, max 2MB. Leave blank to keep current.

@error('avatar')

{{ $message }}

@enderror
{{-- Change password --}}
Change Password
@csrf @method('PATCH')
@error('current_password')

{{ $message }}

@enderror
@error('password')

{{ $message }}

@enderror
{{-- Account info --}}
Account Details
Role
{{ auth()->user()->roles->first()?->name ?? 'No Role' }}
Status
{{ ucfirst(auth()->user()->status) }}
Member Since
{{ auth()->user()->created_at->format('d M Y') }}
Last Login
{{ auth()->user()->last_login_at ? \Carbon\Carbon::parse(auth()->user()->last_login_at)->diffForHumans() : 'N/A' }}
{{-- Danger zone --}}
Danger Zone

Deleting your account is permanent. All your data will be removed and cannot be recovered.

@csrf @method('DELETE')
@error('password', 'userDeletion')

{{ $message }}

@enderror