{{ __('Thông tin hồ sơ') }}

{{ __("Cập nhật thông tin hồ sơ và địa chỉ email của tài khoản.") }}

{{-- ===================== AVATAR UPLOAD ===================== --}} @php $employee = auth()->user()->employee; $avatarUrl = ($employee && $employee->image) ? asset('storage/' . $employee->image) : 'https://ui-avatars.com/api/?name=' . urlencode(auth()->user()->name) . '&background=6366f1&color=fff&size=128'; @endphp
@csrf
{{-- Avatar preview --}}
Avatar
{{-- File input + actions --}}

Ảnh đại diện

Nhấn vào ảnh hoặc chọn file. Hỗ trợ JPG, PNG, GIF, WEBP – tối đa 2MB.

{{ __('Lưu') }}
{{-- Validation error --}} @error('avatar')

{{ $message }}

@enderror {{-- Success message --}} @if (session('avatar-updated'))

✓ {{ session('avatar-updated') }}

@endif {{-- Error from controller --}} @if (session('avatar-error'))

{{ session('avatar-error') }}

@endif
{{-- ===================== END AVATAR UPLOAD ===================== --}}
@csrf
@csrf @method('patch')
@if ($user instanceof \Illuminate\Contracts\Auth\MustVerifyEmail && !$user->hasVerifiedEmail())

{{ __('Địa chỉ email của bạn chưa được xác minh.') }}

@if (session('status') === 'verification-link-sent')

{{ __('Một liên kết xác thực mới đã được gửi đến địa chỉ email của bạn.') }}

@endif
@endif
{{ __('Lưu') }} @if (session('status') === 'profile-updated')

{{ __('Đã lưu.') }}

@endif