@extends('layouts.app') @section('title','Dashboard') @section('page-title','Dashboard') @section('content')
TOTAL BUDGET
GH₵ {{ number_format($totalBudget,2) }}
{{ $projects->count() }} project(s)
TOTAL SPENT
GH₵ {{ number_format($totalSpent,2) }}
GH₵ {{ number_format($pendingPayments,2) }} pending
TODAY ATTENDANCE
{{ $todayAttendance }}
{{ $pendingApprovals }} pending approvals
ALERTS
{{ $openIncidents + $lowStockItems }}
{{ $openIncidents }} incident(s) · {{ $lowStockItems }} low stock
@foreach($projects as $project)
{{ $project->status }} {{ $project->name }}
{{ $project->location }}
Budget: GH₵ {{ number_format($project->budget,2) }}Spent: GH₵ {{ number_format($project->total_spent,2) }}
{{ $project->budget_percent }}% of budget used · {{ $project->staff_count }} staff · {{ $project->subcontractors_count }} subcontractors
@endforeach
Recent Expenditures
@foreach($recentExpenditures as $exp) @endforeach
DateProjectDescriptionCategoryAmountStatus
{{ $exp->date->format('d M Y') }} {{ $exp->project->name ?? '-' }} {{ Str::limit($exp->description,35) }} {{ $exp->category->code ?? '-' }} GH₵ {{ number_format($exp->amount,2) }} {{ $exp->is_paid ? 'Paid' : 'Pending' }}
Spend by Category
Subcontractor Balances
@foreach($activeSubcontractors->take(5) as $sc)
{{ $sc->name }}
{{ $sc->trade }}
GH₵ {{ number_format($sc->balance,2) }}
outstanding
@endforeach View All
@endsection @push('scripts') @endpush