@extends('layouts.admin') @section('page-title') {{ __('Reply Ticket') }} - {{ $ticket->ticket_id }} @endsection @section('multiple-action-button') @can('edit-tickets') {{ __('Edit') }} @endcan @endsection @section('content') @can('edit-tickets') {{ Form::model($ticket, array('route' => array('admin.tickets.update', $ticket->id), 'id' => 'ticket-info', 'class' => 'collapse mt-3', 'method' => 'PUT','enctype'=>'multipart/form-data')) }}
{{ __('Ticket Information') }}
@if ($errors->has('name'))
{{ $errors->first('name') }}
@endif
@if ($errors->has('email'))
{{ $errors->first('email') }}
@endif
@if ($errors->has('category'))
{{ $errors->first('category') }}
@endif
@if ($errors->has('status'))
{{ $errors->first('status') }}
@endif
@if ($errors->has('subject'))
{{ $errors->first('subject') }}
@endif
@if ($errors->has('description'))
{{ $errors->first('description') }}
@endif
@if(!$customFields->isEmpty()) @include('admin.customFields.formBuilder') @endif
{{ __('Attachments') }}({{__('You can select multiple files')}})

    @php $attachments = json_decode($ticket->attachments); @endphp @if(!empty($attachments)) @foreach($attachments as $index => $attachment)
  • {{$attachment}}
  • @endforeach @endif
{{ Form::close() }} @foreach($attachments as $index => $attachment)
@csrf @method('DELETE')
@endforeach @endcan
{{$ticket->name}} ({{$ticket->created_at->diffForHumans()}}) {{ $ticket->email }}
{{ __('Status') }} : {{__($ticket->status)}} {{ __('Category') }} : {{ $ticket->tcategory ? $ticket->tcategory->name : '-' }}
@foreach($customFields as $field)
{{ $field->name }} : {!! (isset($ticket->customField[$field->id]) && !empty($ticket->customField[$field->id])) ? $ticket->customField[$field->id] : '-' !!}
@endforeach
{!! $ticket->description !!}
@php $attachments = json_decode($ticket->attachments); @endphp @if(count($attachments))
{{ __('Attachments') }} :
    @foreach($attachments as $index => $attachment)
  • {{$attachment}}
  • @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))
{{ __('Attachments') }} :
    @foreach($attachments as $index => $attachment)
  • {{$attachment}}
  • @endforeach
@endif
@endforeach
@can('reply-tickets')
{{ __('Add Reply') }}
@csrf
{{ $errors->first('reply_description') }}

{{ __('Note') }}
@csrf
{{ $errors->first('note') }}
@endcan
@endsection @push('scripts') @endpush