@extends('layouts.customer') @section('content')

My Profile

{{-- Profile Photo --}}

Profile Photo

@if($user->avatar ?? $user->profile_photo) Profile @else
{{ strtoupper(substr($user->name, 0, 1)) }}
@endif
@csrf @method('POST')

JPG, PNG or GIF. Max 2MB.

{{-- Personal Information --}}

Personal Information

@if($errors->any())
@foreach($errors->all() as $error)

{{ $error }}

@endforeach
@endif @if(session('success'))

{{ session('success') }}

@endif
@csrf @method('PUT')
@error('name')

{{ $message }}

@enderror
@error('email')

{{ $message }}

@enderror
@error('phone')

{{ $message }}

@enderror
{{-- Change Password --}}

Change Password

@csrf @method('POST')
@error('current_password')

{{ $message }}

@enderror
@error('password')

{{ $message }}

@enderror
{{-- Account Information (Read-Only) --}}

Account Information

Username {{ $user->username }}
Member Since {{ $user->created_at->format('M d, Y') }}
@if(isset($accounts) && $accounts->count())
Account Numbers
@foreach($accounts as $account)
{{ ucfirst($account->type) }} {{ $account->account_number }}
@endforeach
@endif
@endsection