@extends('layouts.main') @section('content') @php $invest = DB::table('invest')->paginate(10); @endphp

List of All Investment


@if ($invest->count() > 0) @foreach ($invest as $inv) @endforeach @else @endif
Date Invested Username Amount Daily Income Total Earned Status
{{ \Carbon\Carbon::parse($inv->created_at)->diffForHumans() }} @php $usr = DB::table('users')->where('id', $inv->user_id)->first(); @endphp {{ $usr->username ?? "Empty"}} KSH {{ $inv->capital }} KSH {{ $inv->returns }} KSH {{ $inv->returns * $inv->days_paid }} @if ($inv->status == 1) Active @else Inactive @endif

No Data found

@endsection