@extends('layouts.app') @section('title', 'Markets & Stocks') @section('heading', 'Markets & Stocks') @section('subtitle', 'Dollar rate, DSEX, oil and gas prices · stock watchlist linked to news') @section('content')
@foreach($indicators as $i)
{{ $i->name }}{{ $i->latestValue ? number_format($i->latestValue->value, 2) : '—' }} {{ $i->unit }} · {{ $i->latestValue?->recorded_at?->format('d M H:i') ?? 'no data' }}
@endforeach

Indicator history

Stock watchlist

@forelse($stocks as $s) @empty @endforelse
SymbolNameCompanyCloseChangeAlerts
{{ $s->symbol }}{{ $s->name }}{{ $s->company?->name ?? '—' }} {{ $s->latestPrice?->close ?? '—' }} {{ $s->latestPrice ? $s->latestPrice->change_pct.'%' : '—' }} {{ $s->alert_below ? '≤'.$s->alert_below : '' }} {{ $s->alert_above ? '≥'.$s->alert_above : '' }} Open →
No stocks on the watchlist.

Record indicator value

@csrf

Values can be entered manually or pushed by a licensed market data feed.

Add stock

@csrf

@endsection @push('scripts') @include('partials.charts') @php $indData = $indicators->map(fn($i) => ['name' => $i->name, 'points' => $i->values->map(fn($v) => ['x' => $v->recorded_at->format('d M'), 'y' => $v->value])]); @endphp @endpush