@extends('layouts.customer') @section('title', 'My Profile') @section('content') {{-- Header --}}

My Profile

Manage your personal information and account security.

{{-- ── Left sidebar: avatar + account info ── --}}
{{-- Avatar card --}}
{{ strtoupper(substr($user->name,0,1)) }}
{{ $user->name }}
{{ $user->email }}
@if($user->company)
{{ $user->company }}
@endif
{{-- Account info card --}}
Account Details
@foreach([ ['Member since', $user->created_at->format('M d, Y')], ['Last login', $user->last_login_at?->diffForHumans() ?? 'First visit'], ['Licenses', $user->licenses()->count()], ['Orders', $user->orders()->count()], ['Tickets', $user->supportTickets()->count()], ] as [$label, $value])
{{ $label }} {{ $value }}
@endforeach
{{-- ── Right: edit forms ── --}}
{{-- ── Personal information ── --}}
Personal Information
Update your name, company and contact details.
@csrf
@error('name')

{{ $message }}

@enderror

Contact support to change your email.

{{-- Country + State row --}}
{{-- Address row --}}
{{-- Tax info notice --}} @php $taxInfo = user_tax_info(); @endphp @if($taxInfo['enabled'] && $taxInfo['rate'] > 0)
Based on your location ({{ $taxInfo['country'] }}{{ $taxInfo['state'] ? ', '.$taxInfo['state'] : '' }}), a tax rate of {{ number_format($taxInfo['rate'], 3) }}% applies ({{ $taxInfo['rules']->pluck('name')->join(', ') }}). Prices in the Market will show tax-inclusive totals.
@elseif($taxInfo['enabled'] && $user->country && $taxInfo['rate'] == 0)
No tax rules configured for your location — tax-free pricing applies.
@elseif($taxInfo['enabled'] && !$user->country)
Set your country and state above so the correct tax rate is applied to your orders.
@endif
{{-- Countries data + JS for dynamic state dropdown --}}
{{-- ── Change password ── --}}
Change Password
Use a strong password of at least 8 characters.
@csrf
@error('current_password')

{{ $message }}

@enderror
@error('password')

{{ $message }}

@enderror
{{-- Password strength hint --}}
{{-- end right column --}}
@endsection