@extends('layouts.admin') @section('page-title', 'Profile Settings') @section('content')
@if(session('success'))

{{ session('success') }}

@endif @if(session('error'))

{{ session('error') }}

@endif {{-- Profile Header --}}
@if(auth()->user()->avatar) {{ auth()->user()->name }} @else
{{ substr(auth()->user()->name, 0, 1) }}
@endif
@csrf

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

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

{{ auth()->user()->role }} Member since {{ auth()->user()->created_at->format('M Y') }}
@if(auth()->user()->avatar)
@csrf @method('DELETE')
@endif
{{-- Left Column --}}
{{-- Profile Information --}}

Profile Information

Update your account details

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

{{ $message }}

@enderror
@error('email')

{{ $message }}

@enderror
{{-- Password --}}

Security

Update your password

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

{{ $message }}

@enderror
@error('password')

{{ $message }}

@enderror
@error('password_confirmation')

{{ $message }}

@enderror
{{-- Right Column --}}
{{-- Account Info --}}

Account Details

Role

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

Status

Active

Joined

{{ auth()->user()->created_at->format('F j, Y') }}

Last Login

{{ property_exists(auth()->user(), 'last_login_at') && auth()->user()->last_login_at ? auth()->user()->last_login_at->diffForHumans() : 'N/A' }}

{{-- Quick Links --}}
@endsection