@extends('user.layout') @section('styles') @endsection @section('content')
{{ __('Ticket') . ': #' . $ticket->ticket_number }}
{{ __('Back') }}

{{ $ticket->subject }}

@if ($ticket->status == 1) {{ __('Pending') }} @elseif ($ticket->status == 2) {{ __('Open') }} @else {{ __('Closed') }} @endif {{ $ticket->created_at->format('M d, Y - h:i A') }}
{!! replaceBaseUrl($ticket->description, 'summernote') !!} @if (!is_null($ticket->attachment)) @endif
{{ __('Conversations') }}
@if (count($conversations) == 0)
{{ __('No Conversation Found') }}
@else
@foreach ($conversations as $conversation) @if ($conversation->person_type == 'admin') @php $admin = $conversation->admin()->first(); @endphp
{{ $admin->first_name . ' ' . $admin->last_name }}
{{ is_null($admin->role_id) ? 'Super Admin' : $admin->role->name }} {{ $conversation->created_at->format('M d,Y , h:i A') }}
{!! replaceBaseUrl($conversation->replay, 'summernote') !!}
@if (!is_null($conversation->attachment)) {{ __('Attachment') }} @endif
@else @php $user = $conversation->user()->first(); @endphp
{{ $user->first_name . ' ' . $user->last_name }}
{{ $user->first_name . ' ' . $user->last_name }}
{{ $conversation->created_at->format('M d,Y , h:i A') }}
{!! replaceBaseUrl($conversation->replay, 'summernote') !!}
@if (!is_null($conversation->attachment)) {{ __('Attachment') }} @endif
@endif @endforeach
@endif
@if ($ticket->status == 2)
{{ __('Reply To Ticket') }}
@csrf
@error('reply')

{{ $message }}

@enderror

{{ __('Upload only ZIP Files, Max File Size is 5 MB') }}

@error('attachment')

{{ $message }}

@enderror
@endif
@endsection @section('script') @endsection