@php use App\Helpers\Helper; use Request as Input; use Carbon\Carbon; @endphp @extends('layouts.master') @section('title', 'Ticket Details') @section('content')
@include('admin.errors.error') @section('breadcrumbs') @endsection

Details

  • Ticket No. #{{ $ticket->sequence_no }}
  • Contact Name : {{ isset($ticket->getContactData->full_name)?$ticket->getContactData->full_name:'' }}
  • Assigned To: {{ isset($ticket->getAssignName->ownerName)?$ticket->getAssignName->ownerName:'' }}

  • Call Notes / Reason for the Call - Add Detailed Notes
  • {{ $ticket->question2_answer}}

  • Did you help them fully about what they called about?
  • {!! Helper::displayTicketAnswer($ticket->answer_type) !!}

  • @if($ticket->answer_type == config('const.yesAnswerInt'))
  • How did you help them, what did you do for them?
  • {{ $ticket->question3_yes_answer }}

  • @else
  • Reason for creating ticket?
  • {{ $ticket->question3_no_answer1}}

  • @endif
  • Created By: {{ isset($ticket->getCreatedByName) ? $ticket->getCreatedByName->first_name.' '.$ticket->getCreatedByName->last_name : '-' }}
  • Updated By: {{ isset($ticket->getUpdatedByName) ? $ticket->getUpdatedByName->first_name.' '.$ticket->getUpdatedByName->last_name : '-' }}
  • Status: {!! Helper::displayTicketStatus($ticket->status) !!}
@if (auth()->user()->can('update-ticket') && auth()->user()->roles[0]->id !== config('const.roleSuperAdmin')) Edit @endif   Back
{{--

Attachments

# File Name Action
--}}

Comment

{!! Form::open([ 'route' => ['admin.ticket.add-comment'], 'id' => 'addcomment', 'name' => 'addcomment', 'enctype' => 'multipart/form-data', ]) !!} @csrf
{!! Form::label('comment', 'Enter Comment', ['class' => 'form-label', 'for' => 'title']) !!} * {!! Form::textarea('comment', Input::old('comment'), [ 'id' => 'v', 'class' => 'form-control', 'placeholder' => 'Enter Comment', 'tabindex' => '5', 'rows' => '6', ]) !!}
{!! Form::close() !!}
Ticket History
    @if (count($ticket->getTicketHistory) > 0) @php $i=0; @endphp @foreach ($ticket->getTicketHistory as $key => $history)
  • @if ($history->status_to == config('const.taskstatusNewInt')) @endif @if ($history->status_to == config('const.taskstatusInProgressInt')) @endif @if ($history->status_to == config('const.taskstatusOnHoldInt')) @endif @if ($history->status_to == config('const.taskstatusCompletedInt')) @endif @if ($history->status_to == config('const.ticketStatusWaitingInt')) @endif @if ($history->status_to == config('const.ticketStatusAssignedToCorrectMemberInt')) @endif @if ($history->status_to == config('const.ticketStatusAssignedToSuperVisorInt')) @endif
    @if ($history->status_to == config('const.taskstatusNewInt')) {!! Helper::displayTicketStatus($history->status_to) !!} @endif @if ($history->status_to == config('const.taskstatusInProgressInt')) {!! Helper::displayTicketStatus($history->status_to) !!} @endif @if ($history->status_to == config('const.taskstatusOnHoldInt')) {!! Helper::displayTicketStatus($history->status_to) !!} @endif @if ($history->status_to == config('const.taskstatusCompletedInt')) {!! Helper::displayTicketStatus($history->status_to) !!} @endif @if ($history->status_to == config('const.ticketStatusWaitingInt')) {!! Helper::displayTicketStatus($history->status_to) !!} @endif @if ($history->status_to == config('const.ticketStatusAssignedToCorrectMemberInt')) {!! Helper::displayTicketStatus($history->status_to) !!} @endif @if ($history->status_to == config('const.ticketStatusAssignedToSuperVisorInt')) {!! Helper::displayTicketStatus($history->status_to) !!} @endif @if($key==0) New Update @endif {{ $history->created_at->diffForHumans() }}
    @php $userID = isset($history->getCommenterUser) ? $history->getCommenterUser->id : '' @endphp Avatar
    {{ isset($history->getCommenterUser) ? $history->getCommenterUser->ownerName : '' }}
    {{ isset($history->getCommenterUser->roles) ? $history->getCommenterUser->roles[0]->name : '' }}

    {{ isset($history->comment) ? $history->comment : '' }}

  • @endforeach @endif
@include('admin.confirmalert') @endsection @section('scripts') @endsection