@php $totalFiltered = $table_detail->count(); $totalWithScore = $table_detail->filter(fn($item) => (int) ($item->with_score ?? 0) === 1)->count(); $totalWithoutScore = $table_detail->filter(fn($item) => (int) ($item->with_score ?? 0) !== 1)->count(); $totalEvaluated = $table_detail->filter(fn($item) => ($item->evaluation_status ?? 'PENDING') === 'EVALUATED')->count(); @endphp
Total Data (Filter)
With Score
Without Score