{{ $station->name }} |
{{ $station->cases_count }}
|
@php
$openCount = 0;
if (isset($stationStatusBreakdown[$station->id])) {
foreach ($stationStatusBreakdown[$station->id] as $breakdown) {
if ($breakdown->status === 'open') {
$openCount = $breakdown->total;
break;
}
}
}
@endphp
{{ $openCount }}
|
@php
$underInvestigationCount = 0;
if (isset($stationStatusBreakdown[$station->id])) {
foreach ($stationStatusBreakdown[$station->id] as $breakdown) {
if ($breakdown->status === 'under_investigation') {
$underInvestigationCount = $breakdown->total;
break;
}
}
}
@endphp
{{ $underInvestigationCount }}
|
@php
$pendingReviewCount = 0;
if (isset($stationStatusBreakdown[$station->id])) {
foreach ($stationStatusBreakdown[$station->id] as $breakdown) {
if ($breakdown->status === 'pending_review') {
$pendingReviewCount = $breakdown->total;
break;
}
}
}
@endphp
{{ $pendingReviewCount }}
|
@php
$closedCount = 0;
if (isset($stationStatusBreakdown[$station->id])) {
foreach ($stationStatusBreakdown[$station->id] as $breakdown) {
if ($breakdown->status === 'closed') {
$closedCount = $breakdown->total;
break;
}
}
}
@endphp
{{ $closedCount }}
|
@php
$otherCount = 0;
if (isset($stationStatusBreakdown[$station->id])) {
foreach ($stationStatusBreakdown[$station->id] as $breakdown) {
if (!in_array($breakdown->status, ['open', 'under_investigation', 'pending_review', 'closed'])) {
$otherCount += $breakdown->total;
}
}
}
@endphp
{{ $otherCount }}
|
View Cases
|
@endforeach