@component('mail::message') @php $trackers = \App\Models\IssueTracker::asOptions(); $priorities = \App\Models\IssuePriority::asOptions(); $trackerLabel = $trackers[$issue->tracker]['label'] ?? $issue->tracker; $priorityLabel = $priorities[$issue->priority]['label'] ?? $issue->priority; $statusMap = [ 'in_progress' => '進行中', 'watching' => '待確認', 'pending' => '待處理', 'hold' => '擱置', 'completed' => '已完成', 'rejected' => '已拒絕', ]; $statusLabel = $statusMap[$issue->status] ?? $issue->status; @endphp # 📋 {{ $isUpdate ? '議題重新指派' : '您被指派了一個議題' }} 您好 **{{ $recipient->name }}**, **{{ $actorName ?: '系統' }}** 將您指派至以下議題: @component('mail::panel') **{{ $issue->title }}** @if ($issue->description) {{ \Illuminate\Support\Str::limit(strip_tags($issue->description), 200) }} @endif --- * **專案:** {{ $issue->project->name ?? '—' }} * **類型:** {{ $trackerLabel }} * **優先權:** {{ $priorityLabel }} * **狀態:** {{ $statusLabel }} @if ($issue->version) * **版本:** {{ $issue->version->name }} @endif @if ($issue->start_date) * **開始日:** {{ $issue->start_date->format('Y-m-d') }} @endif @if ($issue->due_date) * **截止日:** {{ $issue->due_date->format('Y-m-d') }} @endif @if ($issue->estimated_hours) * **預估工時:** {{ $issue->estimated_hours }} 小時 @endif @endcomponent @component('mail::button', ['url' => route('projects.issues.show', [$issue->project_id, $issue->id])]) 前往查看議題 @endcomponent {{ config('app.name') }} @endcomponent