@extends('layouts.app') @section('title', '安裝申請審核') @php $tabs = [ 'supervisor' => ['待我審核', $supervisorPending->count()], 'system' => $isSystem ? ['系統組待安裝', $systemPending->count()] : null, 'mine' => ['我的申請/協作草稿', $mine->count()], 'history' => ['已結案', null], ]; $tabs = array_filter($tabs); $active = request('tab', $isSystem && $systemPending->isNotEmpty() && $supervisorPending->isEmpty() ? 'system' : 'supervisor'); if (!isset($tabs[$active])) $active = 'supervisor'; @endphp @section('content')
安裝申請審核中心
申請請至「專案 → 安裝申請」分頁送出;此處處理主管/PM 核准與系統組安裝。
@php $list = match ($active) { 'system' => $systemPending, 'mine' => $mine, 'history' => $history, default => $supervisorPending, }; @endphp
@forelse($list as $req) @empty @endforelse
# 專案 目標主機 安裝項目 申請人 希望完成 申請時間 狀態
#{{ $req->id }} {{ $req->project->name ?? '-' }} {{ $req->target_host }} {{ \Illuminate\Support\Str::limit($req->packageSummary() ?: $req->install_notes, 100) }} {{ $req->user->name ?? '-' }} {{ $req->expected_date?->format('Y-m-d') ?? '-' }} {{ $req->created_at->format('Y-m-d H:i') }} @include('install-requests._status', ['req' => $req])
目前沒有資料
@endsection