@extends('storefront.layout') @section('title', 'My account') @section('content') @php $accountName = $customer->displayName(); $statusValue = is_object($customer->account_status) ? ($customer->account_status->value ?? '') : (string) $customer->account_status; $accountStatus = match ($statusValue) { 'active' => 'Active', 'suspended' => 'Suspended', 'pending_review' => 'Legacy review', 'rejected' => 'Unavailable', default => 'Active', }; $customerSince = optional($customer->created_at)->format('M j, Y'); @endphp

My account

{{ $accountStatus }}

Welcome back, {{ $user->name }}.

Manage your wholesale account, review orders, update shipping addresses, and get back to the catalog quickly.

Buyer

{{ $accountName }}

Wholesale account

Contact

{{ $user->email }}

@if ($customer->phone)

{{ $customer->phone }}

@endif

Account status

{{ $accountStatus }}

@if ($customerSince)

Customer since {{ $customerSince }}

@endif
@endsection