@extends('layouts.app') @section('title', 'Redmine 帳號申請紀錄') @section('content')

Redmine 帳號申請紀錄

新增申請
@if (session('success'))
{{ session('success') }}
@endif @if ($errors->any())
@endif
@forelse($list as $row) @empty @endforelse
# 申請類型 帳號/專案 申請人 申請日期 狀態 操作
{{ $row->id }} @php $typeColor = match ($row->request_type) { 'new_account' => 'success', 'join_project' => 'primary', 'new_project' => 'warning', default => 'secondary', }; @endphp {{ $row->request_type_label }} @if ($row->request_type === 'join_project') {{ $row->redmine_login }} @else {{ $row->username }} @endif {{ $row->user->name ?? '-' }} {{ $row->created_at->format('Y-m-d H:i') }} @php $color = match ($row->status) { 'pending' => 'warning', 'pending_admin' => 'info', 'approved' => 'success', 'rejected' => 'danger', default => 'secondary', }; $label = match ($row->status) { 'pending' => '待主管審核', 'pending_admin' => '待管理者審核', 'approved' => '已通過', 'rejected' => '已拒絕', default => '未知', }; @endphp {{ $label }}
檢視 @if ($row->status === 'approved') 下載申請單 @endif @if (in_array($row->status, ['pending', 'pending_admin']))
@csrf @method('DELETE')
@endif
目前沒有任何申請紀錄。
{{ $list->links() }}
@endsection