@extends('layouts.app') @section('title', '議題清單') @push('head') @endpush @push('scripts') @endpush @section('content') @php // $allStatuses、$allTrackers、$allPriorities 由 controller 傳入 @endphp {{-- 頂部 --}}
{{ config('app.company_name') }} 專案管理平台
{{-- Tab --}}
專案清單 活動 議題清單
@csrf
← 返回列表

{{ $showArchived ? '封存議題' : '議題清單' }}

📦 {{ $showArchived ? '離開封存檢視' : '查看封存議題 (' . $archivedCount . ')' }}
{{-- 篩選 --}}
@if($showArchived)@endif
@if(request()->hasAny(['tracker','status','priority','assignee','creator','q'])) 清除 @endif 共 {{ $issues->total() }} 筆
{{-- 批次操作列 --}} {{-- 批次 Form (hidden) --}} {{-- 表格 --}} @php $curSort = request('sort'); $curDir = request('dir', 'desc'); $sortUrl = function(string $col) use ($curSort, $curDir): string { $dir = ($curSort === $col && $curDir === 'desc') ? 'asc' : 'desc'; return route('projects.globalIssues') . '?' . http_build_query(array_merge(request()->except(['sort','dir','page']), ['sort' => $col, 'dir' => $dir])); }; $thSort = function(string $label, string $col) use ($curSort, $curDir, $sortUrl): string { $icon = $curSort !== $col ? '' : ($curDir === 'asc' ? '' : ''); return '' . $label . $icon . ''; }; @endphp
@forelse($issues as $issue) @php $tLabel = $allTrackers[$issue->tracker]['label'] ?? $issue->tracker; $tColor = $allTrackers[$issue->tracker]['color'] ?? 'secondary'; $sData = $allStatuses[$issue->status] ?? null; $sLabel = $sData['label'] ?? $issue->status; $sBs = $sData['color'] ?? 'secondary'; $pLabel = $allPriorities[$issue->priority]['label'] ?? $issue->priority; $pColor = $allPriorities[$issue->priority]['color'] ?? null; $projName = $issue->project->name ?? '—'; @endphp @empty @endforelse
# 專案 類型 狀態 優先權 主旨 {!! $thSort('被分配', 'assignee') !!} 建立者 {!! $thSort('更新日期', 'updated_at') !!} {!! $thSort('建立日期', 'created_at') !!}
#{{ $issue->redmine_id }} {{ $projName }} {{ $tLabel }} {{ $sLabel }} {{ $pLabel }} {{ $issue->title }} {{ $issue->assignee?->name ?? '—' }} {{ $issue->user?->name ?? '—' }} {{ $issue->updated_at?->format('Y-m-d') ?? '—' }} {{ $issue->created_at?->format('Y-m-d') ?? '—' }}
目前沒有符合條件的議題。
{{-- 分頁 --}} @if($issues->hasPages())
@if($issues->onFirstPage()) ‹ 上一頁 @else ‹ 上一頁 @endif @foreach($issues->getUrlRange(max(1,$issues->currentPage()-3), min($issues->lastPage(),$issues->currentPage()+3)) as $page => $url) @if($page == $issues->currentPage()) {{ $page }} @else {{ $page }} @endif @endforeach @if($issues->hasMorePages()) 下一頁 › @else 下一頁 › @endif
@endif
@push('scripts') @endpush {{-- 匯出 Modal --}} @endsection