@extends('layouts.app') @section('title', 'Projects Report') @push('styles') @endpush @section('content') @can('view_projects')
Total Projects
{{ count($reportData) }}
Total Budget
${{ number_format($totalBudget, 2) }}
Total Income
${{ number_format($totalIncomeOverall, 2) }}
Total Expense
${{ number_format($totalExpenseOverall, 2) }}
Net Balance
${{ number_format($totalNetBalance, 2) }}
Budget Utilization
{{ $totalBudget > 0 ? round(($totalExpenseOverall / $totalBudget) * 100, 1) : 0 }}%
| Project | Status | Budget | Income | Expense | Net | Budget Used | Margin | Transactions |
|---|---|---|---|---|---|---|---|---|
| {{ $project['name'] }} | @php $statusColors = ['planned' => 'emerald', 'in_progress' => 'amber', 'completed' => 'blue', 'on_hold' => 'slate']; $color = $statusColors[$project['status']] ?? 'slate'; @endphp {{ ucfirst(str_replace('_', ' ', $project['status'])) }} | ${{ number_format($project['budget'], 2) }} | ${{ number_format($project['total_income'], 2) }} | ${{ number_format($project['total_expense'], 2) }} | ${{ number_format($project['net_balance'], 2) }} |
@if($project['budget'] > 0)
|
{{ $project['profit_margin'] }}% | {{ $project['transaction_count'] }} |
No projects have been created yet.