@extends('layouts.user')
@section('title')
Product Details
@endsection
@section('content')
@php
// NEXUS Session State -- uses SessionController's existing methods.
// When engine is inactive, all values stay false/null and the session banner is hidden.
$nexusActive = \App\Nexus\Engine\NexusConfig::isNexusActive();
$sessionOpen = false;
$sessionEndTime = null;
$nextSessionTime = null;
if ($nexusActive) {
$sc = new \App\Nexus\Engine\SessionController();
$activeSession = $sc->getActiveSession();
$sessionOpen = ($activeSession !== null);
if ($sessionOpen) {
$durationMinutes = \App\Nexus\Engine\NexusConfig::getInt('session_duration_minutes', 60);
$sessionEndTime = \Carbon\Carbon::parse($activeSession->actual_start)
->addMinutes($durationMinutes)
->toIso8601String();
} else {
$nextSessionTime = $sc->getNextSessionTime()->toIso8601String();
}
}
// Bid margin from market (applies regardless of NEXUS state)
$bidMarginPercent = $product->market?->bid_margin;
$bidMinAmount = ($bidMarginPercent && $product->value) ? round($product->value * ($bidMarginPercent / 100), 2) : null;
@endphp
{{ ucfirst($product->name) }}
Overview
{{ $product->description }}
Browse
Active Bids Table
| Bidder | Date | Status | Total |
|---|---|---|---|
|
{{ $bid->store_name }}
{{ $bid->email }} |
{{ Carbon\Carbon::parse($bid->bid_time)->format('D d-M-Y') }} | In Progress | ${{ number_format($bid->amount * $bid->quantity, 2) }} · Qty {{ $bid->quantity }} |
Additional Information
| Category | {{ $product->category }} |
| Market | {{ $product->market?->name }} |