@php $topicIcon = ['Linux' => 'terminal', '容器' => 'layers', 'AI' => 'cpu', '資安' => 'shield']; $levelStyle = ['入門' => 'text-emerald-600 border-emerald-500/40 bg-emerald-500/10', '中級' => 'text-amber-600 border-amber-500/40 bg-amber-500/10', '進階' => 'text-rose-600 border-rose-500/40 bg-rose-500/10']; @endphp
{{-- 篩選 --}}
{{ __('主題') }} {{ __('全部') }} @foreach ($topics as $t) {{ __($t) }} @endforeach
{{ __('難度') }} {{ __('全部') }} @foreach (\App\Models\Challenge::LEVELS as $l => $xp) {{ __($l) }} +{{ $xp }} @endforeach

{{ __('本月挑戰') }}

{{ __('共 :n 場', ['n' => $open->count()]) }}
@if ($open->isEmpty())
{{ __('沒有符合條件的挑戰。') }}
@else @endif

{{ __('截止::date。下個月會更新新的題目。', ['date' => $open->first()?->ends_on?->format('Y/m/d') ?? '—']) }}

@if ($past->isNotEmpty())

{{ __('往期挑戰') }}

@endif