@extends('layouts.vpm-dashboard', ['active' => 'mining', 'area' => 'admin']) @section('title', 'Mining') @section('page_title', 'Mining') @section('page_subtitle', 'Configure mining bundles — price, duration, and profit') @section('content')
Create plan

Mining plans

{{ $plans->count() }}

Active plans

{{ $activeCount }}

Total purchases

{{ $totalSubscribers }}

Mining bundles

@if ($plans->isEmpty())

No mining plans yet. Create the first plan.

@else
@foreach ($plans as $plan) @endforeach
Plan Price Duration Profit Purchases Status Actions
{{ $plan->name }} {{ number_format($plan->price, 2) }} {{ $plan->duration_days }} days {{ number_format($plan->profit_percent, 2) }}% {{ $plan->subscriptions_count }} {{ $plan->is_active ? 'Active' : 'Inactive' }}
@csrf @method('PUT')

Expected profit: {{ number_format($plan->expectedProfit(), 2) }} · Daily yield: {{ number_format($plan->dailyYield(), 2) }}

@if (! $plan->subscriptions()->exists())
@csrf @method('DELETE') Delete
@endif
@endif

Client subscriptions

Assign mining plans and adjust balance or profit. Active plans appear in the client open trades panel; completed plans move to closed trades.

@csrf
@if ($subscriptions->isEmpty())

No client mining subscriptions yet.

@else
@foreach ($subscriptions as $subscription) @endforeach
Client Plan Balance Profit Ends Status Actions
@endif
@endsection