@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) }}

Bid Market Market Place Product Details
Back To My Store
{{-- ── Top: Gallery + Info ── --}}
{{-- Gallery --}} {{-- Info --}}

{{ ucfirst($product->name) }}

${{ number_format($product->value, 2) }} Auction Value ${{ number_format($product->old_value, 2) }}
{{-- Stars --}}
@php $r = floatval($product->rating); @endphp @for($i = 1; $i <= 5; $i++) @if($r>= $i) @elseif($r >= $i - 0.5) @else @endif @endfor {{ number_format($product->rating,1) }} rating
{{-- Stock --}} @if($product->status == 1) In Stock @else Out Of Stock @endif {{-- Overview --}}

Overview

{{ $product->description }}

@if($product->status == 1)
{{-- NEXUS Session Banner -- only visible when engine is active --}} @if($nexusActive)
{{ $sessionOpen ? 'Session Active' : 'Session Closed' }}
--:--
@endif {{-- Bid Form --}}
@csrf {{-- Wallet source selector --}}

Pay from:

{{-- Main balance option --}} {{-- ICTP balance option --}}
@error('amount') {{ $message }} @enderror @if($bidMarginPercent && $bidMinAmount)
Minimum bid is {{ number_format($bidMarginPercent, 0) }}% of product value (${{ number_format($bidMinAmount, 2) }})
@endif
@error('quantity') {{ $message }} @enderror
{{-- Live total --}}
Estimated Total $0.00
@endif
{{-- ── Bottom: Tabs ── --}}

Browse

{{-- Bids panel --}}

Active Bids Table

@foreach($bids as $bid) @endforeach
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 }}
@if(count($bids) < 1)
No bids have been placed on this product in the last 24 hours.
@endif
{{-- Addinfo panel --}}

Additional Information

Category {{ $product->category }}
Market {{ $product->market?->name }}
@endsection