@extends('layouts.dashboard.template') @section('title', 'My Profile — Profil Pengguna') @section('content')

Profil Saya (My Profile)

{{-- Left Column: Profile Card --}}
{{ strtoupper(substr($user->name, 0, 2)) }}

{{ $user->name }}

{{ strtoupper($user->roles) }}
{{ $user->email }}
Bergabung: {{ $user->created_at ? $user->created_at->format('d M Y') : '-' }}
{{-- Right Column: Profile Tabs --}}
{{-- Nav Tabs --}} {{-- Flash Errors --}} @if ($errors->any()) @endif
{{-- TAB 1: OVERVIEW --}}
Detail Profil
Nama Lengkap
{{ $user->name }}
Email
{{ $user->email }}
Hak Akses / Role
{{ $user->roles }}
Waktu Dibuat
{{ $user->created_at ? $user->created_at->format('d F Y, H:i') : '-' }} WIB
{{-- TAB 2: EDIT PROFILE --}}
@csrf @method('PATCH')
@error('name')
{{ $message }}
@enderror
@error('email')
{{ $message }}
@enderror
{{-- TAB 3: GANTI PASSWORD --}}
@csrf @method('PATCH') {{-- Password Baru --}}
@error('password')
{{ $message }}
@enderror
{{-- Konfirmasi Password Baru --}}
@push('scripts') @endpush @endsection