@extends('layouts.customer') @section('title', 'Customer Dashboard – MotoSolution Portal') @section('page_title', 'Account Overview') @section('content')
Welcome Back

{{ $user->name }}

Track your active Japanese auction bid authorizations, vessel shipments, and showroom ready stock from your personal automotive portal.

Active Bids

{{ $activeBids->count() }}

Awaiting auction result
Won Auctions

{{ $wonAuctionsCount }}

Successfully hammered
Tracked Orders

{{ $recentOrders->count() }}

In 12-step import pipeline
Saved Watchlist

{{ $watchlistCount }}

Vehicles tracked

Active Authorized Bids

Bids currently queued, approved by admin, or participating on the Japanese auction floor.

View All Bids →
@if($activeBids->count() > 0)
@foreach($activeBids as $bid) @endforeach
Vehicle / Lot Auction House Max Authorized Bid Estimated Landed Cost Status Action
@if($bid->auctionVehicle && !empty($bid->auctionVehicle->images)) Car @else
@endif

{{ $bid->auctionVehicle->year ?? '' }} {{ $bid->auctionVehicle->brand ?? 'Toyota' }} {{ $bid->auctionVehicle->model ?? 'Vehicle' }}

Lot #{{ $bid->auctionVehicle->lot_number ?? 'N/A' }} · Grade {{ $bid->auctionVehicle->grade ?? '4.5' }}
{{ $bid->auctionVehicle->auctionHouse->name ?? 'USS Tokyo' }} ¥{{ number_format($bid->max_bid_jpy) }} ৳{{ number_format($bid->estimated_landed_cost_bdt) }} @php $badgeStyles = [ 'pending' => 'bg-amber-500/20 text-amber-300 border-amber-500/30', 'approved' => 'bg-blue-500/20 text-blue-300 border-blue-500/30', 'submitted' => 'bg-purple-500/20 text-purple-300 border-purple-500/30', 'bidding' => 'bg-red-500/20 text-red-300 border-red-500/30 animate-pulse', 'won' => 'bg-emerald-500/20 text-emerald-300 border-emerald-500/30', 'lost' => 'bg-slate-700/40 text-slate-400 border-slate-600/30', 'cancelled' => 'bg-rose-500/20 text-rose-300 border-rose-500/30' ]; @endphp @if($bid->status === 'pending') Admin Review @elseif($bid->status === 'approved') Approved @elseif($bid->status === 'submitted') Sent to Japan @elseif($bid->status === 'bidding') Floor Bidding @else {{ $bid->status }} @endif Details
@else

You currently have no active bids.

Explore upcoming Japanese lots from USS, TAA, and CAA to place your first authorized bid.

Browse Live Japanese Auctions
@endif

My Vehicle Orders & 12-Step Tracking

Live shipping status and customs clearance progress.

View All Orders →
@if($recentOrders->count() > 0)
@foreach($recentOrders as $order)
@if($order->vehicle && !empty($order->vehicle->images)) Car @elseif($order->auctionVehicle && !empty($order->auctionVehicle->images)) Car @else
@endif
Order #{{ $order->order_number }}

{{ $order->vehicle->title ?? ($order->auctionVehicle->brand . ' ' . $order->auctionVehicle->model) }}

Chassis: {{ $order->chassis_number ?? 'In Allocation' }} · Total: ৳{{ number_format($order->total_landed_cost_bdt) }}

@php $stepNumber = (int) $order->tracking_stage; $percentage = min(100, round(($stepNumber / 12) * 100)); @endphp
Step {{ $stepNumber }} of 12: {{ str_replace('_', ' ', $order->current_status) }} {{ $percentage }}%
ETA: {{ $order->estimated_delivery_date ? $order->estimated_delivery_date->format('M d, Y') : 'Processing' }}
@endforeach
@else

No confirmed vehicle orders yet.

Once your auction bid is won or you book a ready stock vehicle, live import tracking begins here.

@endif
@endsection