@extends('layouts.admin') @section('title', 'Profil Akun') @section('content') @php $user = auth()->user(); $photoUrl = $user?->profile_photo_path ? asset('storage/' . $user->profile_photo_path) : null; $userInitial = $user?->name ? strtoupper(mb_substr($user->name, 0, 1)) : 'U'; @endphp @if (session('success'))
{{ session('success') }}
@endif @if ($errors->any())
Periksa kembali data yang diinput:
@endif
@if ($photoUrl) Foto Profil @else {{ $userInitial }} @endif

{{ $user?->name ?? '-' }}

{{ $user?->role ?? '-' }}
@csrf @method('PUT')
@error('name')
{{ $message }}
@enderror
@error('email')
{{ $message }}
@enderror
Format: JPG, PNG, atau WEBP. Maksimal 5 MB.
@error('profile_photo')
{{ $message }}
@enderror

Kosongkan password jika tidak ingin mengubahnya.

@error('password')
{{ $message }}
@enderror
@endsection