@extends('backEnd.master') @section('styles') @endsection @section('mainContent') @if($errors->any()) @php echo implode('', $errors->all('
:message
')); @endphp @endif

{{$SupportTicket->reference_no}} - {{$SupportTicket->subject}}

{{__('ticket.ticket_info')}}

{{__('ticket.ticket_id')}} :
{{$SupportTicket->reference_no }}
{{__('ticket.subject')}} :
{{$SupportTicket->subject}}
{{__('ticket.priority')}} :
{{@$SupportTicket->priority->name}}
{{__('common.category')}} :
{{@$SupportTicket->category->name}}
{{__('common.status')}} :
{{@$SupportTicket->status->name}}
{{__('common.submit')}} {{__('common.date')}} :
{{dateConvert($SupportTicket->created_at)}}
{{__('ticket.assign_to')}} :
{{@$SupportTicket->assignUser->first_name}} {{@$SupportTicket->assignUser->last_name}}

{{__('ticket.attachment')}}

@if ($SupportTicket->attachFiles->count() > 0) @foreach($SupportTicket->attachFiles as $key => $file) @endforeach @endif

{{@$SupportTicket->user->getFullNameAttribute()}}

{{dateConvert($SupportTicket->created_at)}}

@php echo $SupportTicket->description; @endphp
@foreach($SupportTicket->messages as $key => $message)

{{ $message->user->getFullNameAttribute() }} {{$message->created_at->diffForHumans()}}

@php echo $message->text; @endphp
@if ($message->attachMsgFile->count() > 0) @foreach($message->attachMsgFile as $key => $file) {{ $key+1 }} . {{ strlen($file->name) > 20 ? substr($file->name, 0,20) . '...' . $file->type : $file->name }} @endforeach @endif
@endforeach
@csrf
@if ($errors->has('text')) {{ $errors->first('text') }} @endif
@if ($errors->has('ticket_file.*')) {{ $errors->first('ticket_file.*') }} @endif
@if ($errors->has('status_id')) {{ $errors->first('status_id') }} @endif
@endsection @push('scripts') @endpush