@extends('layouts.user_type.auth') @section('profile') @php $pfInitials = strtoupper(collect(preg_split('/\s+/', trim($user->name ?: '?')))->filter()->take(2)->map(fn ($p) => mb_substr($p, 0, 1))->implode('')); @endphp
@include('components.alert')
@csrf
Personal information
Update your name, email address and password.
@if ($user->photoUrl()) {{ $user->name }} @else {{ $pfInitials }} @endif
Profile photo JPG, PNG or WEBP · up to 2 MB. It appears in the sidebar and the top bar.
@if ($user->photoUrl()) @endif
@error('profile_photo'){{ $message }}@enderror
Only fill this in if you want to change it.
@if($user->user_type === 'admin' || $user->user_type === 'super_admin')
@endif
Cancel
@if ($user->photoUrl()) {{ $user->name }} @else {{ $pfInitials }} @endif
{{ $user->name }}
{{ $user->email }}
{{ ucwords(str_replace('_', ' ', $user->user_type)) }}
Member since
{{ optional($user->created_at)->format('d M Y') ?? '—' }}
Last updated
{{ optional($user->updated_at)->diffForHumans() ?? '—' }}
@endsection