@extends('layouts.user') @section('title') My Grants @endsection @section('content') {{ auth()->user()->username }} {{ auth()->user()->email }} {{-- Grant Funds balance strip --}} @php $grantBalance = auth()->user()->grant_balance ?? 0; $grantCapital = auth()->user()->grant_capital ?? 0; $grantProfit = max(0, $grantBalance - $grantCapital); @endphp Grant Funds ${{ number_format($grantBalance, 2) }} USDT Capital locked: ${{ number_format($grantCapital, 2) }} · Profit: ${{ number_format($grantProfit, 2) }} @if($grantProfit > 0) Move Profit to Wallet @endif {{-- Grant history --}} My Grants History + Apply for Grant @forelse($grants as $grant) @php $bot = \App\Models\Investment::find($grant->investment_id); $isActive = $grant->status == 1 && $grant->expires_at && $grant->expires_at > now(); $isExpired = $grant->status == 1 && $grant->expires_at && $grant->expires_at <= now(); @endphp {{ $grant->grant_type }} @if($bot) Insurance AI: {{ $bot?->plan?->name }} @endif @if($grant->status == 0) ⏳ Pending Review @elseif($grant->status == 1 && $isActive) ✓ Approved & Active Expires {{ $grant->expires_at->format('d M Y') }} @elseif($grant->status == 1 && $isExpired) ✓ Approved Expired {{ $grant->expires_at->format('d M Y') }} @elseif($grant->status == 1) ✓ Approved @else ✕ Declined @endif Applied {{ $grant->created_at->format('d M Y') }} @if($grant->amount) ${{ number_format($grant->amount, 2) }} Approved amount @endif @empty No grant applications yet. Apply for a Grant → @endforelse @endsection
{{ auth()->user()->email }}
No grant applications yet.