@extends('layouts.dashboard') @section('title', 'Sales Team Projects') @section('content')

📊 Sales Team Projects - Monthly Report

@php $totalProjects = 0; $totalAmount = 0; $totalComplete = 0; $totalPaused = 0; $totalIssues = 0; $totalTempHold = 0; $totalRehire = 0; $totalWorking = 0; @endphp @forelse ($report as $row) @php $totalProjects += $row['project_count']; $totalAmount += $row['amount']; $totalComplete += $row['complete']['count']; $totalPaused += $row['paused']['count']; $totalIssues += $row['issues']['count']; $totalTempHold += $row['temp_hold']['count']; $totalRehire += $row['rehire']['count']; $totalWorking += $row['working']; @endphp @empty @endforelse @if(count($report)) @endif
Name Projects Amount Complete Pause Issue Hold Rehire Working
{{ $row['name'] }} {{ $row['project_count'] }} ${{ number_format($row['amount'], 2) }} @if(!empty($row['complete']['pms'])) @endif @if($row['paused']['pms']->count()) @endif @if($row['issues']['pms']->count()) @endif @if($row['temp_hold']['pms']->count()) @endif @if($row['rehire']['pms']->count()) @endif @if($row['working'] > 0) {{ $row['working'] }} @else {{ $row['working'] }} @endif
No data found for selected month and year.
Total {{ $totalProjects }} ${{ number_format($totalAmount, 2) }} {{ $totalComplete }} {{ $totalPaused }} {{ $totalIssues }} {{ $totalTempHold }} {{ $totalRehire }} {{ $totalWorking }}
@endsection