@php $endedCount = 0; $ongoingCount = 0; $upcomingCount = 0; // Initialize the counter for "قادم" foreach ($all as $datac) { if ($datac->status === 'منتهي') { $endedCount++; } elseif ($datac->status === 'جاري') { $ongoingCount++; } elseif ($datac->status === 'قادم') { $upcomingCount++; // Increment the counter for "قادم" } } @endphp

{{ $endedCount }}

مزاد منتهي

{{ $upcomingCount }}

مزاد قادم

{{ $ongoingCount }}

مزاد جاري