@extends('layouts.vpm-mobile-app', ['active' => 'markets']) @section('title', 'Trading room') @section('content_class', 'vpm-shell__main--trading-room') @section('content') @php $filterUrl = fn (array $overrides = []) => route('app.markets.trading-room', array_merge([ 'category' => $categoryLabel, 'symbol' => $symbol, 'chart' => $chart, 'tab' => $tab, ], $overrides)); $tabUrl = fn (string $nextTab) => $filterUrl(['tab' => $nextTab]); $showTradesPanel = $tab !== 'room'; $activeTrades = $tab === 'closed' ? $closedTrades : $openTrades; $emptyTradesLabel = $tab === 'closed' ? 'NO CLOSED TRADES' : 'NO OPEN TRADES'; $chartTheme = 'dark'; $chartWrapClass = match ($chart) { 'Info' => 'vpm-trading-room__chart-wrap--info', 'Technical' => 'vpm-trading-room__chart-wrap--technical', default => 'vpm-trading-room__chart-wrap--simple', }; @endphp