Chỉnh sửa yêu cầu hỗ trợ kỹ thuật

@csrf @method('PUT')
@error('customer_id')
{{ $message }}
@enderror
@error('status')
{{ $message }}
@enderror
@error('department_id')
{{ $message }}
@enderror
@error('request_type_id')
{{ $message }}
@enderror
Bạn chỉ được tải 1 file. Định dạng: jpg, jpeg, png, pdf, doc, docx, txt. Dung lượng tối đa: 40MB. @error('attachments')
{{ $message }}
@enderror @if($supportRequest->attachment)
File hiện tại: {{ $supportRequest->attachment->filename }} Tải Xuống
@endif
{{-- Tiêu đề --}}
@error('subject')
{{ $message }}
@enderror
{{-- Mô tả --}}
@error('description')
{{ $message }}
@enderror
{{-- Nhóm nút Submit và Cancel --}}
Hủy
@if($supportRequest->status !== 'Hoàn thành')

Phản hồi

@foreach ($feedbacks as $feedback) @endforeach
@endif @if($supportRequest->status !== 'Hoàn thành')
@include('admin.request.reply-cus')
@endif

Lịch sử trạng thái yêu cầu

@if($supportRequest->history->count() > 0) @php // Sắp xếp theo 'changed_at' giảm dần để bản ghi mới nhất lên đầu $sortedHistory = $supportRequest->history->sortByDesc('changed_at'); @endphp @foreach($sortedHistory as $history) @endforeach
Thời gian Trạng thái Phòng ban tiếp nhận Người thay đổi Ghi chú
{{ \Carbon\Carbon::parse($history->changed_at)->format('d/m/Y H:i') }} {{ $history->new_status }} @if($history->department_id) {{ optional($history->department)->department_name ?? 'N/A' }} @else Chưa có @endif @if($history->changed_by) {{ $history->employee->full_name ?? 'N/A' }} @else Hệ thống @endif {{ $history->note }}
@else

Không có lịch sử trạng thái nào để hiển thị.

@endif