@extends('layouts.app') @section('title', '周次 ' . $sprint->name) @section('content')
@if(session('success'))
{{ session('success') }}
@endif {{-- 頁首 --}}

{{ $sprint->year }} 年 第 {{ $sprint->week }} 週({{ $sprint->name }})

{{ $sprint->status_label }}
{{ $sprint->start_date->format('Y/m/d') }}({{ $sprint->start_date->locale('zh_TW')->isoFormat('ddd') }}) ~ {{ $sprint->end_date->format('Y/m/d') }}({{ $sprint->end_date->locale('zh_TW')->isoFormat('ddd') }}) · {{ $sprint->duration_days }} 天 @if($sprint->status === 'active') · 剩 {{ $sprint->days_remaining }} 天 @endif
編輯
@csrf @method('DELETE')
{{-- 人員需求 --}}
人員需求
@if($requiredUsers->isNotEmpty()) 共 {{ $requiredUsers->count() }} 人・ {{ $requiredUsers->sum('man_days') }} 人日 @endif
@if($requiredUsers->isEmpty())
尚未設定人員需求,請點「編輯」進行設定。
@else
@foreach($requiredUsers as $ru) @endforeach
姓名 人日 備註
{{ $ru['user']?->name ?? '(已刪除帳號)' }} {{ $ru['man_days'] }} 天 {{ $ru['remark'] ?: '—' }}
@endif
@if($sprint->goal)
週次目標

{{ $sprint->goal }}

@endif
@endsection