@php $filtered = request('type') ? $tasks->filter(fn($t)=>$t->type===request('type')) : $tasks; @endphp
@forelse($filtered as $task)
{{ match($task->type){ 'video'=>'▶','visit'=>'🌐','daily'=>'📅','game'=>'🎮','quiz'=>'🧩','offer'=>'🎫',default=>'⭐' } }}
{{ $task->title }}
{{ Str::limit($task->description,60) }}
{{ ucfirst($task->type) }}
{{ $task->completed_today }}/{{ $task->daily_limit }} today
+{{ $task->points }}
pts
@if($task->can_do)
@if($task->type === 'visit' && $task->url)
@elseif($task->requires_proof)
@else
@endif
@else
@endif