@extends('layouts.admin') @section('title', 'Bid #' . $bid->id . ' Management – Admin CRM') @section('page_title', 'Bid Authorization #' . $bid->id) @section('content')
Back to Bids CRM
Current Status: {{ $bid->status }}
@if($bid->auctionVehicle && !empty($bid->auctionVehicle->images)) Vehicle @else
@endif
Grade {{ $bid->auctionVehicle->grade ?? '4.5' }}
{{ $bid->auctionVehicle->auctionHouse->name ?? 'USS' }}

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

Lot #{{ $bid->auctionVehicle->lot_number }} · Chassis: {{ $bid->auctionVehicle->chassis_number ?? 'Pending' }}

Mileage {{ number_format($bid->auctionVehicle->mileage ?? 0) }} km
Engine {{ $bid->auctionVehicle->engine_cc ?? 1800 }} cc
Transmission {{ $bid->auctionVehicle->transmission ?? 'Automatic' }}
Fuel {{ $bid->auctionVehicle->fuel_type ?? 'Hybrid' }}
@if($bid->auctionVehicle && $bid->auctionVehicle->auction_sheet_url)
Original Auction Sheet
Auction Sheet
@endif

Customer CRM Profile

WhatsApp Direct
Client Name: {{ $bid->user->name ?? 'N/A' }}
Contact Phone: {{ $bid->user->phone ?? 'N/A' }}
Email: {{ $bid->user->email ?? 'N/A' }}
City / Address: {{ $bid->user->customer->city ?? 'Dhaka' }} ({{ $bid->user->customer->address ?? 'Showroom pickup' }})

Bidding Ceiling & Landed Cost

Starting Auction Price: ¥{{ number_format($bid->auctionVehicle->starting_price_jpy ?? 0) }}
Client Maximum Authorized: ¥{{ number_format($bid->max_bid_jpy) }}
Estimated Landed Cost (Dhaka): ৳{{ number_format($bid->estimated_landed_cost_bdt) }}
Token Security Deposit: ৳{{ number_format($bid->deposit_amount_bdt ?? 200000) }} ({{ ucfirst($bid->deposit_status ?? 'verified') }})

CRM Workflow Actions

@if($bid->status === 'pending')
@csrf Step 1: Admin Verification & Japan API Dispatch

Validates client deposit and submits the maximum bid limit to Japanese floor agent.

@csrf
@endif @if(in_array($bid->status, ['approved', 'submitted', 'bidding']))
@csrf
Step 2: Auction Hammer Struck (WON)

Enter final Japanese hammer price. Automatically creates Order & generates live 12-step import tracker.

@csrf
@endif @if($bid->status === 'won' && $bid->order) @endif

Audit Activity History

@forelse($bid->history as $history)
{{ ucwords(str_replace('_', ' ', $history->action)) }} {{ $history->created_at->format('M d, h:i A') }}

{{ $history->notes }}

@empty

No activity logged.

@endforelse
@endsection