@extends('layouts.app') @section('title', 'Projects Report') @push('styles') @endpush @section('content') @can('view_projects')

Projects Report

Financial overview and budget tracking for all projects

Clear

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 }}%

@if(count($reportData) > 0)

Project Details

{{ count($reportData) }} Projects
@foreach($reportData as $project) @endforeach
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['budget_utilization'] }}%
@else - @endif
{{ $project['profit_margin'] }}% {{ $project['transaction_count'] }}
@else

No Projects

No projects have been created yet.

@endif @endcan @endsection