@extends('layouts.app') @section('title', '議題清單') @push('head') @endpush @section('content') @php $isMyIssuesTab = request()->filled('assignee') && (string)request('assignee') === (string)auth()->id(); $activeTab = $isMyIssuesTab ? 'myissues' : 'issues'; $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])); }; $sortIcon = function(string $col) use ($curSort, $curDir): string { if ($curSort !== $col) return ''; return $curDir === 'asc' ? '' : ''; }; @endphp @include('projects._list_tabs', ['activeTab' => $activeTab])
| # | 專案 | 類型 | 狀態 | 優先權 | 主旨 | 被分配{!! $sortIcon('assignee') !!} | 建立者 | 更新{!! $sortIcon('updated_at') !!} | 建立{!! $sortIcon('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') ?? '—' }} | |
| 目前沒有符合條件的議題。 | ||||||||||