@extends('layouts.admin') @section('page-title') {{ __('Reply Ticket') }} - {{ $ticket->ticket_id }} @endsection @section('breadcrumb') @endsection @php $logo = \App\Models\Utility::get_file('/'); $setting = App\Models\Utility::settings(); @endphp @section('multiple-action-button')
@can('edit-tickets')
@endcan
@endsection @section('content') @can('edit-tickets') {{ Form::model($ticket, ['route' => ['admin.tickets.update', $ticket->id], 'id' => 'ticket-info', 'class' => 'collapse mt-3', 'method' => 'PUT', 'enctype' => 'multipart/form-data']) }}
{{ __('Ticket Information') }}
@if (isset($setting['is_enabled']) && $setting['is_enabled'] == 'on') {{ __('Generate with AI') }} @endif
@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

    @php $attachments = json_decode($ticket->attachments); @endphp @if (!empty($attachments)) @foreach ($attachments as $index => $attachment)
  • {{ $attachment }}
  • @endforeach @endif
@if ($errors->has('priority'))
{{ $errors->first('priority') }}
@endif
@if ($errors->has('description'))
{{ $errors->first('description') }}
@endif
@if (!$customFields->isEmpty()) @include('admin.customFields.formBuilder') @endif
{{ __('Cancel') }}
{{ 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)
  • {{-- @dd($ticket); --}} {{ $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')
@if($ticket->status != 'Closed')
{{ __('Add Reply') }}
@if (isset($setting['is_enabled']) && $setting['is_enabled'] == 'on') @endif
@csrf
{{ $errors->first('reply_description') }}

@endif
{{ __('Note') }}
@if (isset($setting['is_enabled']) && $setting['is_enabled'] == 'on') {{ __('Generate with AI') }} @endif
@csrf
{{ $errors->first('note') }}
@endcan
@endsection @push('scripts') @endpush