@extends('helpdesk_ticket.master') @section('page-title') {{ __('Ticket') }} - {{ $ticket->ticket_id }} @endsection @push('css') @endpush @section('content')

{{ __('Ticket') }} - {{ $ticket->ticket_id }}

@csrf
{{ $ticket->name }} ({{ $ticket->created_at->diffForHumans() }})

{!! $ticket->description !!}

@php $attachments = json_decode($ticket->attachments); @endphp @if (!is_null($attachments) && count($attachments) > 0)
{{ __('Attachments') }} :
    @foreach ($attachments as $index => $attachment)
  • {{ $attachment->name }}
  • @endforeach
@endif
@foreach ($ticket->conversions as $conversion)
{{ $conversion->replyBy()->name }} ({{ $conversion->created_at->diffForHumans() }})
{!! $conversion->description !!}
@php $attachments = json_decode($conversion->attachments); @endphp @if (count($attachments))
{{ __('Attacbhments') }} :
    @foreach ($attachments as $index => $attachment)
  • {{ $attachment->name }}
  • @endforeach
@endif
@endforeach @if ($ticket->status != 'Closed')
@csrf
{{ $errors->first('reply_description') }}

{{ __('Description filed is required.') }}

@else

{{ __('Ticket is closed you cannot replay.') }}

@endif
@endsection @push('script') @endpush