Working Now
{{ count($participants->where('status', 'progress')) }}
Finished
{{ count($participants->where('status', 'submitted')) }}
Unstarted
{{ count($participants->where('status', 'unstarted')) }}
Session Event Stream
@php
$events = collect();
foreach($participants as $p) {
if ($p->raw_start) {
$events->push([
'time' => \Carbon\Carbon::parse($p->raw_start),
'msg' => "Candidate {$p->name} started the test.",
'icon' => 'fas fa-play',
'color' => 'info'
]);
}
if ($p->raw_submit) {
$events->push([
'time' => \Carbon\Carbon::parse($p->raw_submit),
'msg' => "Candidate {$p->name} completed the test.",
'icon' => 'fas fa-check-circle',
'color' => 'success'
]);
}
}
$events = $events->sortByDesc('time')->take(5);
@endphp
@forelse ($events as $event)
{{ $event['msg'] }}
{{ $event['time']->diffForHumans() }}
@empty
@endforelse