{{ $update->title }}

{{ ucfirst(str_replace('_', ' ', $update->type)) }} {{ ucfirst($update->priority) }} {{ ucfirst(str_replace('_', ' ', $update->status)) }}
الوصف:

{{ $update->description }}

تم الإنشاء بواسطة:

{{ $update->createdBy->name ?? 'غير محدد' }}

مُعيَّن إلى:

{{ $update->assignedTo->name ?? 'غير محدد' }}

تاريخ الإنشاء:

{{ $update->created_at->format('Y-m-d H:i') }}

@if ($update->due_date)
تاريخ الاستحقاق:

{{ $update->due_date->format('Y-m-d') }} @if ($update->due_date->isPast() && $update->status != 'completed') متأخر @endif

@endif
@if ($update->tags && count($update->tags) > 0)
العلامات:
@foreach ($update->tags as $tag) {{ $tag }} @endforeach
@endif @if ($update->notes)
الملاحظات:
@php $noteEntries = explode("\n\n", $update->notes); @endphp @foreach ($noteEntries as $entry) @if (trim($entry)) @php $lines = explode("\n", $entry); $header = $lines[0] ?? ''; $content = implode("\n", array_slice($lines, 1)); @endphp
{{ $header }}
{{ $content }}
@endif @endforeach
@endif