@extends('layouts.app') @section('title', 'Treasurer Tasks') @section('page-title', 'Treasurer Task Checklist') @section('content') {{-- Progress Summary Bar --}}
@foreach($progress as $key => $prog)
{{ $prog['percentage'] }}%
{{ $prog['label'] }}
{{ $prog['completed'] }} of {{ $prog['total'] }} complete
@endforeach
{{-- Task Sections --}} @foreach($categories as $key => $label)
@php $icons = ['first_30_days' => 'bi-calendar-check', 'monthly' => 'bi-arrow-repeat', 'semi_annual' => 'bi-receipt', 'year_end' => 'bi-flag-fill']; @endphp {{ $label }}
{{ $progress[$key]['completed'] }}/{{ $progress[$key]['total'] }}
@forelse($tasks[$key] as $task)
{{-- Checkbox toggle --}}
{{-- Content --}}
{{ $task->title }}
@if($task->description)
{{ $task->description }}
@endif @if($task->is_completed && $task->completedByUser)
Completed by {{ $task->completedByUser->name }} on {{ $task->completed_at?->format('d M Y') }}
@endif
{{-- Delete (custom tasks only — those with a fiscal_year set) --}} @if($task->fiscal_year)
@csrf @method('DELETE')
@endif
@empty
No tasks in this category.
@endforelse
@endforeach {{-- Add Custom Task Modal --}} @endsection @push('scripts') @endpush