@extends('frontend.layouts.main-profile') @section('title', 'Chi tiết yêu cầu hỗ trợ' ) @section('keywords', 'Chi tiết yêu cầu hỗ trợ') @section('description', 'Chi tiết yêu cầu hỗ trợ') @section('abstract', 'Chi tiết yêu cầu hỗ trợ') @section('image', 'Chi tiết yêu cầu hỗ trợ') @section('css') @endsection @section('content')
Mã câu hỏi Trạng thái Người gửi Người xử lý
{{ $ticket->ticket_code }} @foreach ($ticket->listStatus as $status) @if ($status['status']==$ticket->status) {{ $status['name'] }} @endif @endforeach {{ $ticket->user->name ?? '' }} {{ $ticket->admin->name ?? '' }}

{{ __('common.NỘI DUNG YÊU CẦU') }} - {{ $ticket->title }}

{!! $ticket->responses->first()->content!!} @if (count($ticket->responses->first()->attachments) > 0)

{{ __('common.File đính kèm') }}:

@foreach ($ticket->responses->first()->attachments as $attachment) @endforeach
@endif
@if ($ticket->responses->count() >= 2) @foreach ($ticket->responses->skip(1) as $response) @php $isUser = $response->user_id == $ticket->user_id; $responseClass = $isUser ? 'user' : 'admin'; $name = $isUser ? $ticket->user->name : $ticket->admin->name; @endphp
{{ $name }} [{{ $response->created_at->format('d/m/Y - H:i') }}]
{!! $response->content !!} @if (count($response->attachments) > 0)

{{ __('common.File đính kèm') }}:

@foreach ($response->attachments as $attachment) @endforeach
@endif
@endforeach @endif @if ($ticket->status != -1)
{{ $ticket->user->name ?? '' }}
@csrf
@endif
@endsection @section('js') @endsection