@extends('dashboard.layouts.main') @section('title', 'Core Mining ⛏️- AI Gold Mining ⛏️') @push('styles') @endpush @section('content')

Mining Wallet

Manage your cryptocurrency mining earnings and transactions

Net BALANCE
$ {{ number_format($balances['net_balance'], 2) }}
Fund Wallet:
${{ number_format($balances['fund_wallet'], 2) }}
Mining Earning:
${{ number_format($balances['mining_earning'], 2) }}
Referral Earning:
${{ number_format($balances['referral_earning'], 2) }}
{{-- --}}
{{--
Referral Earnings
$0
Commissions from your referral network
Mining Earnings
$0
Active mining returns and profits
--}}
Total Deposits
${{ number_format($totalDeposits, 2) }}
All-time deposit amount
Total Withdrawals
${{ number_format($totalWithdrawals, 2) }}
All-time withdrawal amount

Transaction History

View and manage all your mining transactions

@forelse(($transactionsData['data'] ?? []) as $transaction) @php $type = $transaction['type']; $amount = $transaction['amount']; $description = $transaction['description'] ?? ''; $status = $transaction['status'] ?? 'completed'; $createdAt = $transaction['created_at']; // Determine icon and styling based on transaction type $isCredit = in_array($type, ['deposit', 'referral_earning', 'mining_earning']); $iconClass = 'success'; $icon = 'fa-arrow-down'; $typeBadgeClass = 'wallet-type-credit'; $typeIcon = 'fa-arrow-up'; $typeLabel = 'Credit'; $amountClass = 'wallet-amount-positive'; $amountPrefix = '+'; if ($type === 'withdrawal') { $iconClass = 'danger'; $icon = 'fa-arrow-up'; $typeBadgeClass = 'wallet-type-debit'; $typeIcon = 'fa-arrow-down'; $typeLabel = 'Debit'; $amountClass = 'wallet-amount-negative'; $amountPrefix = '-'; } elseif ($type === 'referral_earning') { $icon = 'fa-trophy'; } elseif ($type === 'mining_earning') { $icon = 'fa-coins'; } elseif ($type === 'deposit') { $icon = 'fa-plus-circle'; } // Format date $date = $createdAt instanceof \Carbon\Carbon ? $createdAt : \Carbon\Carbon::parse($createdAt); $dateFormatted = $date->format('M d, Y'); $timeFormatted = $date->format('h:i A'); // Status badge class $statusBadgeClass = 'wallet-status-' . $status; @endphp @empty @endforelse
Transaction Type Amount Status Date & Time
{{ $description ?: ucfirst(str_replace('_', ' ', $type)) }}
{{ $dateFormatted }}, {{ $timeFormatted }}
{{ $typeLabel }}
{{ $amountPrefix }}${{ number_format($amount, 2) }}
@if($type === 'deposit') Fund Wallet: ${{ number_format($balances['fund_wallet'], 2) }} @elseif($type === 'withdrawal') Net Balance: ${{ number_format($balances['net_balance'], 2) }} @elseif($type === 'referral_earning') Referral Earning: ${{ number_format($balances['referral_earning'], 2) }} @elseif($type === 'mining_earning') Mining Earning: ${{ number_format($balances['mining_earning'], 2) }} @else Net Balance: ${{ number_format($balances['net_balance'], 2) }} @endif
{{ ucfirst($status) }}
{{ ucfirst($status) }}
{{ $dateFormatted }}
{{ $timeFormatted }}

No transactions found

@php $lastPage = (int) ($transactionsData['last_page'] ?? 1); @endphp @if($lastPage > 1)
@php $currentPage = (int) ($transactionsData['current_page'] ?? 1); $prevUrl = $currentPage > 1 ? request()->fullUrlWithQuery(['page' => $currentPage - 1]) : null; $nextUrl = $currentPage < $lastPage ? request()->fullUrlWithQuery(['page' => $currentPage + 1]) : null; $startPage = max(1, $currentPage - 2); $endPage = min($lastPage, $currentPage + 2); if ($startPage > 1) { $endPage = min($lastPage, $startPage + 4); } if ($endPage < $lastPage) { $startPage = max(1, $endPage - 4); } @endphp @if($prevUrl) @else @endif
@if($startPage > 1) 1 @if($startPage > 2) ... @endif @endif @for($page = $startPage; $page <= $endPage; $page++) @if($page === $currentPage) {{ $page }} @else {{ $page }} @endif @endfor @if($endPage < $lastPage) @if($endPage < $lastPage - 1) ... @endif {{ $lastPage }} @endif
@if($nextUrl) @else @endif
@endif
@push('scripts') @endpush @endsection