@extends('layouts.pengunjung') @section('title', 'Profil') @section('content')
@php use Illuminate\Support\Facades\Storage; $pfUser = auth()->user(); $pfAvatarUrl = $pfUser && $pfUser->foto_profil ? Storage::url($pfUser->foto_profil) : null; $pfInitial = strtoupper(substr($pfUser->nama ?? 'U', 0, 1)); @endphp
@unless($pfAvatarUrl) {{ $pfInitial }} @endunless
{{ auth()->user()->nama }}

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

@csrf
Informasi Profil
Username tidak dapat diubah

Ubah Password
Isi hanya jika ingin mengubah password
@endsection