{{-- ✅ الهيدر --}}
{{-- ✅ المحتوى --}}
{{ __('task.title') }}: {{ $task->title }}
{{ __('task.category') }} {{ $task->category->name ?? '-' }} {{ __('task.status') }} {{ $task->status }}
{{ __('task.priority') }} {{ $task->priority }} {{ __('task.due_date') }} {{ $task->due_date }}
{{ __('task.assigned_to') }} {{ $task->employees->pluck('name')->join(', ') }}
{{ __('task.notes') }} {{ $task->notes ?? '-' }}
@if($task->comments->count())

{{ __('task.comments') }}

@foreach($task->comments as $comment) @endforeach
{{ __('task.author') }} {{ __('task.comment') }} {{ __('task.date') }}
{{ $comment->user->name ?? __('task.user') }} {{ $comment->content }} {{ $comment->created_at->format('Y-m-d H:i') }}
@endif
___________________________
{{ __('payslips.signature') }}
{{-- ✅ الفوتر --}}