@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
{{ $row['name'] }} |
{{ $row['project_count'] }} |
${{ number_format($row['amount'], 2) }} |
@if(!empty($row['complete']['pms']))
@foreach($row['complete']['pms'] as $pm)
- {{ $pm }}
@endforeach
@endif
|
@if($row['paused']['pms']->count())
@foreach($row['paused']['pms'] as $pm)
- {{ $pm }}
@endforeach
@endif
|
@if($row['issues']['pms']->count())
@foreach($row['issues']['pms'] as $pm)
- {{ $pm }}
@endforeach
@endif
|
@if($row['temp_hold']['pms']->count())
@foreach($row['temp_hold']['pms'] as $pm)
- {{ $pm }}
@endforeach
@endif
|
@if($row['rehire']['pms']->count())
@foreach($row['rehire']['pms'] as $pm)
- {{ $pm }}
@endforeach
@endif
|
@if($row['working'] > 0)
{{ $row['working'] }}
@else
{{ $row['working'] }}
@endif
|
@empty
No data found for selected month and year. |
@endforelse
@if(count($report))
Total |
{{ $totalProjects }} |
${{ number_format($totalAmount, 2) }} |
{{ $totalComplete }} |
{{ $totalPaused }} |
{{ $totalIssues }} |
{{ $totalTempHold }} |
{{ $totalRehire }} |
{{ $totalWorking }} |
@endif