@extends('layouts.app_backend') @section('content')

Total Investment

{{ $totalInvestment }}

Admin Users

{{ $adminCount }}

Registered Investor

Total Investment

Recent Investors

@foreach ($investors as $investor) @endforeach
No Firstname Lastname Email Address Phone Number Registered On User Status
{{ $loop->iteration }} {{ $investor->firstname }} {{ $investor->lastname }} {{ $investor->email }} {{ $investor->phone }} {{ $investor->created_at->format('d-m-y') }}

Recent Deals

@foreach ($deals as $deal) @endforeach
No Deal Name Started On Total Investment Total Investors Status Actions
{{ $loop->iteration }} {{ $deal->deal_name }} {{ Carbon\Carbon::createFromFormat('Y-m-d', $deal->start_date)->format('d-m-Y') }} {{ number_format($deal->total_investment, 2) }} @php $formattedTotalInvestors = ($deal->total_investors > 0) ? $deal->total_investors : '0'; echo $formattedTotalInvestors; @endphp Invested
@endsection