@extends('layouts.user') @section('title', 'Investments') @section('content')

Investments

@if(count($deposits) <= 0 ) @else @foreach($deposits as $deposit) @php $plan = \App\Models\Plan::where(['id' => $deposit->plan_id])->first(); @endphp @if($deposit['status'] == \App\Constants::PENDING) @else @endif @endforeach @endif
Plan Amount Profit Status Date
You've made no investments yet
You've made no investments yet {{ $plan['name'] }} ${{ number_format($deposit['amount_invested']) }} ${{ number_format($deposit['amount_to_earn']) }} @if($deposit['status'] == \App\Constants::ACTIVE) @endif @if($deposit['status'] == \App\Constants::INACTIVE) @endif {{ $deposit['created_at'] }}
@endsection