@php $closeAction = route('support-ticket.close', $ticket->ticket_code); if (isStudent()) { $closeAction = route('student.ticket.close', $ticket->ticket_code); } if (isInstructor()) { $closeAction = route('instructor.ticket.close', $ticket->ticket_code); } if (isOrganization()) { $closeAction = route('organization.ticket.close', $ticket->ticket_code); } @endphp
{{ $ticket->title }}
{{ translate('Ticket Close') }}
@csrf
{{ translate('Description') }}:
{!! clean($ticket->description) !!}
@if ($ticket->replies->count() == 0 && isset($replyForm) && $replyForm != true)

{{ translate('You Should reply as soon as possible') }}.

@endif
@if ($ticket->replies->count() > 0)
    @foreach ($ticket->replies as $reply)
  • @php $user = $reply->user->userable ?? $reply->author; $path = $reply->user && $reply->user->userable ? 'lms/instructors' : 'lms/admins'; $profileImg = $user->profile_img && fileExists("{$path}", $user->profile_img) ? asset("storage/{$path}/{$user->profile_img}") : asset('lms/assets/images/placeholder/profile.jpg'); @endphp client
    {!! clean($reply->description) !!} @if (isset($reply->supportFiles) && !empty($reply->supportFiles)) @foreach ($reply->supportFiles as $supportFile)
    {{ $supportFile->file }}
    @endforeach @endif
    {{ customDateFormate($reply->created_at, $format = 'm:s A') }}
  • @endforeach
@endif @if (isset($userType) && $userType != 'student' && $ticket->status !== 'close')
@endif