@extends('crm.layouts.master') @section('title','Symbols') @section('page-css') @endsection @section('main-content')
| # | TV Symbol | Name | Category | Latest Price | Status | Trades | Action |
|---|---|---|---|---|---|---|---|
| {{ $sym->id }} | {{ $sym->tv_symbol }} |
{{ $sym->name }} | {{ ucfirst($sym->category) }} |
@if($sym->latestPrice)
{{ number_format($sym->latestPrice->price, $sym->decimal_places) }}
{{ $sym->latestPrice->priced_at?->diffForHumans() }} @else — @endif |
{{ $sym->is_active ? 'Active' : 'Inactive' }} | {{ $sym->trades_count }} | @if($sym->tv_symbol) @php // Some TVC indices are restricted in TradingView's embeddable widget. // Keep the configured CRM symbol and use an equivalent embeddable feed for its chart. $embeddedChartSymbol = [ 'TVC:DXY' => 'CAPITALCOM:DXY', ][$sym->tv_symbol] ?? $sym->tv_symbol; @endphp @endif |