@extends('crm.layouts.master') @section('title', 'Binary Options') @section('page-css') @endsection @section('main-content')
@if($leadId)
Showing records for client #{{ $leadId }} Clear filter
@endif {{-- ══ Filters ══ --}}
Reset
{{-- ══ Trades Table ══ --}}
@forelse($options as $opt) @empty @endforelse
# Client Symbol Dir Stake Payout% Potential Strike Close Expiry Expires At Status Actions
{{ $opt->id }} @if($opt->lead) {{ $opt->lead->fname }} {{ $opt->lead->lname }}
{{ $opt->lead->email }}
@else #{{ $opt->lead_id }} @endif
{{ $opt->symbol->name ?? '—' }} {{ strtoupper($opt->direction) }} {{ $opt->currency }} {{ number_format($opt->stake, 2) }} {{ $opt->payout_pct }}% {{ $opt->currency }} {{ number_format($opt->potential_return, 2) }} {{ number_format($opt->strike_price, $opt->strike_price < 10 ? 5 : 2) }} {{ $opt->close_price ? number_format($opt->close_price, $opt->close_price < 10 ? 5 : 2) : '—' }} {{ $opt->expiry_label }} {{ $opt->expires_at->format('d M y H:i') }} @if($opt->status === 'open')
{{ $opt->is_expired ? 'EXPIRED' : 'Active' }} @endif
{{ ucfirst(str_replace('_',' ',$opt->status)) }} @if($opt->settled_by && $opt->settler)
by {{ $opt->settler->name }}
@endif
@if($opt->status === 'open') @else — @endif
No binary options found.
@if($options->hasPages())
{{ $options->links() }}
@endif
{{-- ══ Settings Panel ══ --}}
Per-Symbol Settings

Configure payout percentage, enable/disable binary options, and available expiry times for each symbol. Changes take effect immediately for new trades.

@foreach($symbols as $sym) @php $st = $settings->get($sym->id); $enabled = $st ? $st->enabled : true; $pct = $st ? $st->payout_pct : 80; $expiries = $st ? $st->available_expiries : \App\Models\BinaryOptionSetting::supportedExpiryKeys(); @endphp @endforeach
Symbol Enabled Payout % Available Expiries
{{ $sym->name }} %
@foreach(\App\Models\BinaryOptionSetting::$expiryOptions as $key => $label) @endforeach
{{-- ══ Settle Modal ══ --}} @endsection @push('scripts') @endpush