Customer Account Dashboard for E-Commerce

Our company is engaged in the development, support and maintenance of sites of any complexity. From simple one-page sites to large-scale cluster systems built on micro services. Experience of developers is confirmed by certificates from vendors.
Development and maintenance of all types of websites:
Informational websites or web applications
Business card websites, landing pages, corporate websites, online catalogs, quizzes, promo websites, blogs, news resources, informational portals, forums, aggregators
E-commerce websites or web applications
Online stores, B2B portals, marketplaces, online exchanges, cashback websites, exchanges, dropshipping platforms, product parsers
Business process management web applications
CRM systems, ERP systems, corporate portals, production management systems, information parsers
Electronic service websites or web applications
Classified ads platforms, online schools, online cinemas, website builders, portals for electronic services, video hosting platforms, thematic portals

These are just some of the technical types of websites we work with, and each of them can have its own specific features and functionality, as well as be customized to meet the specific needs and goals of the client.

Showing 1 of 1 servicesAll 2065 services
Customer Account Dashboard for E-Commerce
Medium
~1-2 weeks
FAQ
Our competencies:
Development stages
Latest works
  • image_web-applications_feedme_466_0.webp
    Development of a web application for FEEDME
    1161
  • image_ecommerce_furnoro_435_0.webp
    Development of an online store for the company FURNORO
    1041
  • image_crm_enviok_479_0.webp
    Development of a web application for Enviok
    822
  • image_crm_chasseurs_493_0.webp
    CRM development for Chasseurs
    847
  • image_website-sbh_0.png
    Website development for SBH Partners
    999
  • image_website-_0.png
    Website development for Red Pear
    451

Developing Customer Account Dashboard for E-commerce

Account dashboard — customer retention point. Stores order history, manages addresses, accesses bonuses and returns. Weak dashboard forces support calls; strong dashboard reduces support load. Takes 7–12 business days.

Section Structure

Typical account sections:

Section URL Functionality
Overview /account Recent orders, bonuses, notifications
Orders /account/orders History, filters, tracking
Returns /account/returns RMA requests status
Addresses /account/addresses CRUD delivery addresses
Profile /account/profile Name, phone, email, password change
Subscriptions /account/subscriptions Email lists, push notifications
Wishlist /account/wishlist Saved products
Bonuses /account/bonuses Balance, history

Routing and Protection

Cabinet routes protected by auth middleware:

Route::middleware(['auth', 'verified'])->prefix('account')->group(function () {
    Route::get('/', [AccountController::class, 'dashboard'])->name('dashboard');
    Route::get('/orders', [OrderController::class, 'index'])->name('orders.index');
    Route::get('/orders/{order}', [OrderController::class, 'show'])
        ->can('view', 'order')
        ->name('orders.show');
    Route::resource('addresses', AddressController::class);
});

Policy OrderPolicy ensures user sees only their orders.

Dashboard Overview

Collects from multiple sources in single request:

public function dashboard(Request $request): Response {
    $user = $request->user()->load([
        'orders' => fn($q) => $q->latest()->limit(3)->with('items.product'),
        'bonusAccount',
        'activeReturns',
    ]);

    return Inertia::render('Account/Dashboard', [
        'recentOrders'   => OrderResource::collection($user->orders),
        'bonusBalance'   => $user->bonusAccount?->balance ?? 0,
        'pendingReturns' => $user->activeReturns->count(),
        'notifications'  => $user->unreadNotifications()->limit(5)->get(),
    ]);
}

Address Management

Users can have multiple addresses: home, office, pickup point. One marked default:

class Address extends Model {
    protected $fillable = [
        'user_id', 'label', 'full_name', 'phone',
        'country', 'region', 'city', 'street', 'house',
        'apartment', 'postal_code', 'is_default',
    ];

    public function setAsDefault(): void {
        DB::transaction(function () {
            $this->user->addresses()->update(['is_default' => false]);
            $this->update(['is_default' => true]);
        });
    }
}

Email Change and Two-Factor

Email change — sensitive operation:

  1. User enters new email
  2. Confirmation email sent to new address
  3. Only after link click — email updates in DB
  4. Notification sent to old address
public function updateEmail(Request $request): void {
    $request->validate(['email' => 'required|email|unique:users,email']);

    $token = Str::random(64);
    Cache::put("email_change:{$token}", [
        'user_id'   => $request->user()->id,
        'new_email' => $request->email,
    ], now()->addHours(2));

    Mail::to($request->email)->send(new EmailChangeConfirmation($token));
}

Subscription Management

Central place for communication preferences:

const SubscriptionSettings = () => {
  const { preferences, toggle } = useNotificationPreferences();

  const options = [
    { key: 'order_updates', label: 'Order status' },
    { key: 'promotions', label: 'Sales and discounts' },
    { key: 'back_in_stock', label: 'Back in stock' },
    { key: 'price_drops', label: 'Favorite price drops' },
    { key: 'newsletter', label: 'Weekly newsletter' },
  ];

  return (
    <div className="space-y-3">
      {options.map(({ key, label }) => (
        <div key={key} className="flex items-center justify-between">
          <span>{label}</span>
          <Switch checked={preferences[key]} onCheckedChange={() => toggle(key)} />
        </div>
      ))}
    </div>
  );
};

Password Change Security

Requires current password and confirmation:

public function updatePassword(Request $request): void {
    $request->validate([
        'current_password' => ['required', 'current_password'],
        'password'         => ['required', 'min:8', 'confirmed'],
    ]);

    $request->user()->update([
        'password' => Hash::make($request->password),
    ]);

    Auth::logoutOtherDevices($request->password);
    event(new PasswordChanged($request->user()));
}

Account Deletion (GDPR)

Per GDPR, users can delete accounts. Soft delete with anonymization:

public function deleteAccount(Request $request): void {
    $user = $request->user();
    $user->update([
        'email'      => "deleted_{$user->id}@removed.invalid",
        'name'       => 'Deleted user',
        'phone'      => null,
        'deleted_at' => now(),
    ]);
    Auth::logout();
}

Orders preserved for accounting — only personal data anonymized.

Mobile Adaptation

Mobile — separate layout with bottom navigation (tab bar) instead of sidebar. Critical operations (order status, tracking) accessible in 2–3 clicks from main screen.