@extends('layouts.app') @section('title', 'Import Kanboard Tasks · QA Dashboard') @section('content')

Import Kanboard Tasks

Pull cached Kanboard tasks into the Weekly Tasks log. Each task is placed under its assignee, in the Fri–Thu week matching its date, in the module mapped from its Kanboard project (falling back to Other Tasks). Preview the per-week counts first, then save. Re-importing refreshes existing rows instead of duplicating.

@if (session('status'))
{{ session('status') }}
@endif @if ($errors->any())
{{ $errors->first() }}
@endif @if (!$configured || $taskCount === 0)
@if (!$configured) Kanboard isn't configured yet. Set KANBOARD_URL and KANBOARD_API_TOKEN, then use Sync from Kanboard below. @else No Kanboard tasks are cached yet. Click Sync from Kanboard below to pull them in. @endif
@endif
Project
Quarter
Week
{{-- Refresh the cached Kanboard tasks / project list straight from Kanboard. --}}
@csrf

{{-- Preview modal --}}
Import preview — ·

WeekTasks
Total
{{-- Hidden form that actually commits the import --}}
@csrf
@if (!empty($log))

Imported Kanboard tasks · log by quarter & week — includes previous quarters

@foreach ($log as $q => $data)
@foreach ($data['weeks'] as $w) @endforeach
WeekModulesTasks
{{ $w['label'] }} @foreach ($w['modules'] as $m => $c){{ $m }} ({{ $c }})@if (!$loop->last), @endif @endforeach {{ $w['count'] }}
@csrf
@csrf
@endforeach
@endif @endsection @push('scripts') @endpush