@extends('layouts.app') @section('title', 'Dashboard - Cash Flow Management') @section('page-title', 'Dashboard') @section('content')

{{ $totalCompanies }}

Total Companies

{{ $totalProjects }}

Total Projects

{{ $totalCashFlows }}

Cash Flows Created

{{ number_format($netCashFlow) }}

Net Cash Flow

Recent Cash Flows
Create New
@if($recentCashFlows->count() > 0)
@foreach($recentCashFlows as $cashFlow) @endforeach
ID Company Project Year Created By Created At Actions
#{{ $cashFlow->id }} {{ $cashFlow->company->name }} {{ $cashFlow->project->name }} {{ $cashFlow->year }} {{ $cashFlow->created_by }} {{ $cashFlow->created_at->format('M d, Y') }}
@else

No cash flows created yet

Create Your First Cash Flow
@endif
System Overview

Active Projects

{{ \App\Models\Project::where('status', 'Active')->count() }}

Inactive Projects

{{ \App\Models\Project::where('status', 'Inactive')->count() }}

Inflow Items

{{ \App\Models\Particular::where('type', 'Inflow')->count() }}

Outflow Items

{{ \App\Models\Particular::where('type', 'Outflow')->count() }}

@endsection