@extends('crm.layouts.master') @section('title','Client Detail — '.$leads->fname.' '.$leads->lname) @section('page-css') @endsection @section('main-content')
Approved Deposits
{{ $financialSummary['approved_conversion_complete'] ? $financialSummary['approved_count'].' approved' : 'FX conversion incomplete' }}Cash Balance
{{ $portfolio['wallets']->count() }} {{ Str::plural('wallet', $portfolio['wallets']->count()) }}Position Value
{{ $valuation['counts']['total'] }} openTotal Equity
{{ $mainCurrency }}| Type | Instrument / Market | Position | Entry / Strike | Current | Value | P&L / Status |
|---|---|---|---|---|---|---|
| Asset | {{ $row['position']->symbol?->name ?? 'Unknown' }} | {{ rtrim(rtrim(number_format($row['quantity'], 8), '0'), '.') }} units | {{ number_format($row['average'], $row['position']->symbol?->decimal_places ?? 4) }} | {{ number_format($row['latest'], $row['position']->symbol?->decimal_places ?? 4) }} | USD {{ number_format($row['value'] ?? 0, 2) }} | {{ $pnl >= 0 ? '+' : '' }}USD {{ number_format($pnl, 2) }} |
| Leveraged | {{ $row['position']->symbol?->name ?? 'Unknown' }} | {{ strtoupper($row['position']->direction) }} · {{ $row['position']->leverage }}× | {{ number_format($row['position']->entry_price, $row['position']->symbol?->decimal_places ?? 4) }} | {{ number_format($row['latest'], $row['position']->symbol?->decimal_places ?? 4) }} {{ $row['priceStatus'] }} | USD {{ number_format($row['value'], 2) }} | {{ $row['pnl'] >= 0 ? '+' : '' }}USD {{ number_format($row['pnl'], 2) }} |
| Prediction | {{ $row['position']->question }} | {{ $row['position']->outcome }} · {{ rtrim(rtrim(number_format($row['shares'], 8), '0'), '.') }} shares | {{ number_format($row['average'] * 100, 2) }}¢ | {{ number_format($row['latest'] * 100, 2) }}¢ {{ $row['priceStatus'] }} | USD {{ number_format($row['value'] ?? 0, 2) }} | {{ $pnl >= 0 ? '+' : '' }}USD {{ number_format($pnl, 2) }} |
| Binary | {{ $row['option']->symbol?->name ?? 'Unknown' }} | {{ strtoupper($row['option']->direction) }} · stake USD {{ number_format($row['stake'] ?? 0, 2) }} | {{ number_format($row['option']->strike_price, $row['option']->symbol?->decimal_places ?? 4) }} | Open until {{ $row['option']->expires_at?->format('M j, H:i') ?? '—' }} | USD {{ number_format($row['stake'] ?? 0, 2) }} | Open |
| Reference | Date | Source | Amount | Status | Created by | @if($canReviewDeposits)Actions | @endif
|---|---|---|---|---|---|---|
| {{ $entry['reference'] ?: '—' }} | {{ $entry['date'] ?: 'Unknown' }} | {{ $entry['source'] }} | {{ !empty($entry['negative']) ? '−' : '+' }}{{ $entry['currency'] }} {{ number_format($entry['amount'], 2) }} | {{ $entry['status'] }} | {{ $entry['created_by'] ?: 'System' }} | @if($canReviewDeposits)@if($entry['source'] === 'Deposit' && strtolower($entry['status']) === 'pending' && !empty($entry['source_id']))@else—@endif | @endif
| Document | File | Status | Reviewer | Reviewed | Reason | Actions |
|---|---|---|---|---|---|---|
| {{ ucwords(str_replace('_',' ', $document->document_type)) }} | {{ $document->original_name }} | {{ str_replace('_',' ', $document->status) }} | {{ $document->reviewer?->name ?: '—' }} | {{ $document->reviewed_at ?: '—' }} | {{ $document->rejection_reason ?: '—' }} |
View
@if($canReviewKyc)
@if($document->status !== 'approved')
@endif
@endif
@if($canReviewKyc && $document->status !== 'approved')@endif
|
| Subject | Department | Priority | Status | Assigned to | Created |
|---|---|---|---|---|---|
| {{ $ticket->subject }} | {{ $ticket->department ?: '—' }} | {{ ucfirst($ticket->priority) }} | {{ $ticket->status }} | {{ $ticket->assignee?->name ?: 'Unassigned' }} | {{ $ticket->created_at }} |
| Date | Activity | User |
|---|---|---|
| {{ $entry->created_at ?: 'Unknown' }} | {{ $entry->description }} | {{ $entry->user?->name ?: 'System' }} |
| Date | Event | User |
|---|---|---|
| {{ $entry->created_at ?: 'Unknown' }} | {{ $entry->description }} | {{ $entry->user?->name ?: 'System' }} |
| Date and time | Note | Author | @if($userAccess->can_delete_lead_notes === 'Yes')Action | @endif
|---|---|---|---|
| {{ $note->created_at?->format('Y-m-d H:i') ?: ($note->create_date ?: 'Unknown') }} | {{ $note->message }} | {{ $note->user?->name ?: 'System' }} | @if($userAccess->can_delete_lead_notes === 'Yes')@endif |