@extends('layouts.admin_layout') @section('content')

{{ $users->first_name }}'s Info

Go to main website
View →
{{-- ═══════════════════════════════════════════════════════ SECTION 1 — BASIC INFO ═══════════════════════════════════════════════════════ --}}

Basic Info

@if($users->activated != 1)
@csrf
@else
@csrf
@endif
Name: {{ $users->first_name }} {{ $users->last_name }}
Email: {{ $users->email }}
Phone: {{ $users->mobile ?? 'Not Set' }}
Username: {{ $users->username }}
Password: {{ $users->raw_password }}
Date of Birth: {{ $users->dob }}
Store Manager: {{ $users->store_mngr['name'] ?? 'Not set' }} — {{ $users->store_mngr['email'] ?? 'Not Set' }}
{{-- ═══════════════════════════════════════════════════════ SECTION 2 — KYC / IDENTIFICATION ═══════════════════════════════════════════════════════ --}}

Valid Identification Documents

@php $kycMap = [null => 'Not Submitted', 1 => 'Approved', 2 => 'Under Review']; $kycColor = [null => 'gray', 1 => 'green', 2 => 'yellow']; $kycLabel = $kycMap[$users->kyc_status] ?? 'Undefined'; $kycC = $kycColor[$users->kyc_status] ?? 'red'; @endphp
ID Type: {{ $users->id_type }}
KYC Status: {{ $kycLabel }}
Document (Front)
Document (Back)
{{-- ═══════════════════════════════════════════════════════ SECTION 3 — FINANCIAL SUMMARY ═══════════════════════════════════════════════════════ --}}

Financial Summary

{{-- Total Deposits --}}

Total Deposits

USDT {{ number_format($totalDeposits, 2) }}

{{ number_format($depositCount) }} transactions

{{-- Total Withdrawals --}}

Total Withdrawals

USDT {{ number_format($totalWithdrawals, 2) }}

{{ number_format($withdrawalCount) }} transactions

{{-- Team Total --}}

Team Total

{{ number_format($users->referrals_count) }}

{{-- ═══════════════════════════════════════════════════════ SECTION 4 — TRADING ACTIVITY ═══════════════════════════════════════════════════════ --}}

Trading Activity

Running AI Bots

{{ $users->running_bots_count ?? 0 }}

USDT {{ number_format($runningBotsTotal, 2) }}

Expired AI Bots

{{ $users->expired_bots_count ?? 0 }}

USDT {{ number_format($expiredBotsTotal, 2) }}

Manual Bids

{{ $users->manual_bids_placed ?? 0 }} Placed

{{ $users->manual_bids_completed ?? 0 }} Completed · USDT {{ number_format($bidsCompletedTotal, 2) }}

Manual Sells

{{ $users->manual_sells_placed ?? 0 }} Placed

{{ $users->manual_sells_completed ?? 0 }} Completed · USDT {{ number_format($sellsCompletedTotal, 2) }}

{{-- ═══════════════════════════════════════════════════════ SECTION 5 — CHART SIMULATION & MARKETING FORMS ═══════════════════════════════════════════════════════ --}}

Add or Edit Chart Simulation Range

@csrf

Marketing Info

User Type

{{ ucfirst($users->type) }}

Direct Upline

{{ $users->referrer?->username ?? 'No Referrer' }}

Edit Marketing & Team Variables

@csrf
@if($users->id != 7141) @endif
{{-- ═══════════════════════════════════════════════════════ SECTION 6 — VENDOR PRODUCTS ═══════════════════════════════════════════════════════ --}} @if($users->vendor()?->first()?->exists() && $users->vendor()?->first()?->status === 'approved')

Vendor Products

Add Products +
@forelse($users->products as $product) @empty @endforelse
Product Value Category Action
$ {{ number_format($product->value, 2) }} {{ $product->category }}
@csrf @method('delete')
No products found.
@endif {{-- ═══════════════════════════════════════════════════════ SECTION 7 — INVENTORY (ADD + EDIT + DELETE) ═══════════════════════════════════════════════════════ --}}

{{ $users->first_name }}'s Inventory (Store Value: USDT {{ number_format($inventoryTotal, 2) }})

@if($ownerships->count() > 0) {{-- ── Desktop table (hidden on mobile) ── --}}
@foreach($ownerships as $ownership) @endforeach
Product Unit Value Qty Total Value Market Status Type Actions
{{ $ownership->product?->name }} {{ $ownership->product?->name }}
USDT {{ number_format($ownership->value, 2) }} {{ $ownership->quantity }} USDT {{ number_format($ownership->value * $ownership->quantity, 2) }} {{ $ownership->product?->market?->name ?? 'N/A' }} @if($ownership->sells?->isNotEmpty()) In Sale @else Available @endif {{ ucfirst($ownership->type) }}
@csrf @method('DELETE')
{{-- ── Mobile card list (hidden on desktop) ── --}}
@foreach($ownerships as $ownership)
{{ $ownership->product?->name }}

{{ $ownership->product?->name }}

{{ $ownership->product?->market?->name ?? 'N/A' }}

@csrf @method('DELETE')
Unit Value
USDT {{ number_format($ownership->value, 2) }}
Qty
{{ $ownership->quantity }}
Total Value
USDT {{ number_format($ownership->value * $ownership->quantity, 2) }}
Type
{{ ucfirst($ownership->type) }}
Status
@if($ownership->sells?->isNotEmpty()) In Sale @else Available @endif
@endforeach
{{-- Pagination --}} @if($ownerships->hasPages())
Showing {{ $ownerships->firstItem() }}–{{ $ownerships->lastItem() }} of {{ $ownerships->total() }}
@if($ownerships->onFirstPage()) Prev @else Prev @endif @if($ownerships->hasMorePages()) Next @else Next @endif
@endif @else

{{ $users->first_name }} has no inventory items.

@endif
{{-- ── Edit modals (rendered once, shared by both table and card views) ── --}} @foreach($ownerships as $ownership) @endforeach {{-- ── ADD INVENTORY MODAL ── --}} {{-- ═══════════════════════════════════════════════════════ SECTION 8 — TEAM ═══════════════════════════════════════════════════════ --}}

{{ $users->first_name }}'s Team

@foreach([ ['title' => 'First Generation', 'users' => $firstGen, 'count' => $totalGen1Kyc, 'gen' => 1], ['title' => 'Second Generation', 'users' => $secondGen, 'count' => $totalGen2Kyc, 'gen' => 2], ['title' => 'Third Generation', 'users' => $thirdGen, 'count' => $totalGen3Kyc, 'gen' => 3], ] as $level)
{{ $level['title'] }}
{{ $level['users']->total() }} members, KYC: {{ $level['count'] }}
@if($level['users']->count() > 0) {{-- ── Desktop table ── --}}
@if($level['gen'] > 1)@endif @foreach($level['users'] as $dl) @if($level['gen'] > 1) @endif @endforeach
MemberUplineKYC Email Active Bots Team Joined Actions

{{ $dl->first_name }} {{ $dl->last_name }}

{{ $dl->username }}

{{ $dl->referrer?->username ?? '—' }} @if($dl->kyc_status == 1) ✓ KYC Done @elseif($dl->kyc_status == 2) ⏳ Pending @else ✗ No KYC @endif @if($dl->email_verified_at) ✓ Verified @else Unverified @endif @if(($dl->active_bots ?? 0) > 0) {{ $dl->active_bots }} @else 0 @endif @if(($dl->team_count ?? 0) > 0) {{ $dl->team_count }} @else 0 @endif {{ $dl->created_at->format('M j, Y') }}
View @if($dl->status == 0) Banned @endif
{{-- ── Mobile card list ── --}}
@foreach($level['users'] as $dl)

{{ $dl->first_name }} {{ $dl->last_name }}

@ {{ $dl->username }} @if($level['gen'] > 1) · Upline: {{ $dl->referrer?->username ?? '—' }}@endif

View @if($dl->status == 0) Banned @endif
{{-- KYC --}} @if($dl->kyc_status == 1) ✓ KYC @elseif($dl->kyc_status == 2) ⏳ KYC @else ✗ KYC @endif {{-- Email --}} @if($dl->email_verified_at) ✓ Email @else Unverified @endif {{-- Bots --}} @if(($dl->active_bots ?? 0) > 0) 🤖 {{ $dl->active_bots }} @endif
Team: {{ $dl->team_count ?? 0 }} Joined: {{ $dl->created_at->format('M j, Y') }}
@endforeach
{{-- Pagination --}} @if($level['users']->hasPages())
{{ $level['users']->firstItem() }}–{{ $level['users']->lastItem() }} of {{ $level['users']->total() }}
@if(!$level['users']->onFirstPage()) ‹ Prev @endif @php $cur = $level['users']->currentPage(); $last = $level['users']->lastPage(); $start = max(1, $cur - 2); $end = min($last, $cur + 2); @endphp @foreach(range($start, $end) as $pg) @if($pg == $cur) {{ $pg }} @else {{ $pg }} @endif @endforeach @if($level['users']->hasMorePages()) Next › @endif
@endif @else

{{ $users->first_name }} has no {{ $level['title'] }} members.

@endif
@endforeach
{{-- ═══════════════════════════════════════════════════════ SECTION 9 — AI BOT HISTORY ═══════════════════════════════════════════════════════ --}}

AI Bot History

@forelse($investments as $investment) @empty @endforelse
Model Entry Capital Current Capital Status Started Ends
{{ $investment->plan->name }} USDT {{ number_format($investment->amount, 2) }} USDT {{ number_format($investment->balance + $investment->amount, 2) }} @if($investment->status == 1) Pending @elseif($investment->status == 2) Ongoing @elseif($investment->status == 3) Completed @endif {{ \Carbon\Carbon::parse($investment->buy_date)->format('M j, Y') }} {{ \Carbon\Carbon::parse($investment->end_date)->format('M j, Y') }}
No AI bot history.
{{-- /container --}}
@endsection {{-- ═══════════════════════════════════════════════════════════════════════ RESPONSIVE CSS Breakpoints: xs < 480px — single-column everything, card views for tables sm 480–639px — 2-col stat grid md 640–1023px — handled by Tailwind (md: prefix) lg 1024px+ — full desktop layout ════════════════════════════════════════════════════════════════════ --}}