@extends('layouts.admin') @section('title', 'My Profile — DaisyRisk') @push('styles') @endpush @section('content') @php // Always fetch the freshest data from DB (avoids cached Eloquent model issues) $user = auth()->user()->fresh(); // Build avatar URL: stored as "profile-photos/id_time.ext" → served via storage symlink $avatarSrc = null; if ($user->profile_photo) { $avatarSrc = str_starts_with($user->profile_photo, 'http') ? $user->profile_photo : asset('storage/' . $user->profile_photo); } $initials = strtoupper(substr($user->name, 0, 1)); @endphp
Kelola informasi akun dan preferensi Anda.