@extends('admin.layouts.master') @section('css') @endsection @section('page-header') @endsection @section('content')

{{ $update->title }}

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

{{ $update->description }}

@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
إجراءات سريعة

تفاصيل التحديث
@if ($update->due_date) @endif
النوع: {{ ucfirst(str_replace('_', ' ', $update->type)) }}
الأولوية: {{ ucfirst($update->priority) }}
الحالة: {{ ucfirst(str_replace('_', ' ', $update->status)) }}
تم الإنشاء بواسطة: {{ $update->createdBy->name ?? 'غير محدد' }}
مُعيَّن إلى: {{ $update->assignedTo->name ?? 'غير محدد' }}
تاريخ الإنشاء: {{ $update->created_at->format('Y-m-d H:i') }}
آخر تحديث: {{ $update->updated_at->format('Y-m-d H:i') }}
تاريخ الاستحقاق: {{ $update->due_date->format('Y-m-d') }} @if ($update->due_date->isPast() && $update->status != 'completed') متأخر @endif
حالة التقدم
@php $progress = 0; switch ($update->status) { case 'pending': $progress = 0; break; case 'in_progress': $progress = 50; break; case 'on_hold': $progress = 25; break; case 'completed': $progress = 100; break; case 'cancelled': $progress = 0; break; } $progressColor = $progress == 100 ? 'success' : ($progress > 0 ? 'info' : 'warning'); @endphp
{{ $progress }}%
البداية الإنجاز
@endsection @section('js') @endsection