@extends('layouts.main') @section('page-title') {{ __('Reply Ticket') }} - {{ $ticket->ticket_id }} @endsection @section('page-breadcrumb') {{ __('Tickets') }},{{ __('Reply') }} @endsection @section('page-action')
@permission('helpdesk ticket edit') @if(Auth::user()->id == $ticket->created_by || Auth::user()->type == 'super admin')
@endif @endpermission
@endsection @push('css') @endpush @section('content') @permission('helpdesk ticket edit') {{ Form::model($ticket, ['route' => ['helpdesk.update', $ticket->id], 'id' => 'ticket-info', 'class' => 'collapse mt-3 needs-validation', 'method' => 'PUT', 'enctype' => 'multipart/form-data','novalidate']) }}
@if(Auth::user()->type == 'super admin')
@php $name = 'Customers'; @endphp
{{ $errors->first('name') }}
@if ($errors->has('email'))
{{ $errors->first('email') }}
@endif
@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 (!empty($ticket->attachments)) @php $attachments = json_decode($ticket->attachments); @endphp @foreach ($attachments as $index => $attachment) @endforeach @endif
@if ($errors->has('description'))
{{ $errors->first('description') }}
@endif
{{ __('Cancel') }}
{{ Form::close() }} @if (!empty($ticket->attachments)) @foreach ($attachments as $index => $attachment)
@csrf @method('DELETE')
@endforeach @endif @endpermission
{{ $ticket->name }} ({{ $ticket->created_at->diffForHumans() }}) {{ $ticket->email }}
{{ __('Status') }} : {{ __($ticket->status) }} {{ __('Category') }} : {{ $ticket->tcategory ? $ticket->tcategory->name : '-' }}

{!! $ticket->description !!}

@if (!empty($ticket->attachments)) @php $attachments = json_decode($ticket->attachments); @endphp @if (count($attachments))
{{ __('Attachments') }} :
    @foreach ($attachments as $index => $attachment)
  • {{ $attachment->name }}
  • @endforeach
@endif @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->name }}
  • @endforeach
@endif
@endforeach
@permission('helpdesk ticket reply')
{{ __('Add Reply') }}
@csrf
{{ $errors->first('reply_description') }}

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

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