@extends('layouts.adminmaster') @section('styles') @endsection @section('content')
@if ($ticket->purchasecode != null) @php $aaa = Str::length($ticket->purchasecode); @endphp @if ($aaa != 36) @if (decrypt($ticket->purchasecode) != 'undefined')
{{ lang('Purchase Code') }} : @if (!empty(Auth::user()->getRoleNames()[0]) && Auth::user()->getRoleNames()[0] == 'superadmin') {{ decrypt($ticket->purchasecode) }} @else @if (setting('purchasecode_on') == 'on') {{ decrypt($ticket->purchasecode) }} @else {{ Str::padLeft(Str::substr(decrypt($ticket->purchasecode), -4), Str::length(decrypt($ticket->purchasecode)), Str::padLeft('*', 1)) }} @endif @endif @if ($ticket->purchasecodesupport == 'Supported') {{ lang('Support Active') }} @elseif($ticket->purchasecodesupport == 'Expired') {{ lang('Support Expired') }} @else @endif
@endif @else
{{ lang('Purchase Code') }} : @if (!empty(Auth::user()->getRoleNames()[0]) && Auth::user()->getRoleNames()[0] == 'superadmin') {{ $ticket->purchasecode }} @else @if (setting('purchasecode_on') == 'on') {{ $ticket->purchasecode }} @else {{ Str::padLeft(Str::substr($ticket->purchasecode, -4), Str::length($ticket->purchasecode), Str::padLeft('*', 1)) }} @endif @endif @if ($ticket->purchasecodesupport == 'Supported') {{ lang('Support Active') }} @elseif($ticket->purchasecodesupport == 'Expired') {{ lang('Support Expired') }} @else @endif
@endif @endif @if ($ticket->cust->logintype == 'envatosociallogin') @if ($ticket->usernameverify != null) @if ($ticket->usernameverify == 'verified') @if (Auth::user()->getRoleNames()[0] == 'superadmin')
{{ lang('The username in purchase details and the current logged-in username do not match. This customer’s username has been verified and is valid.') }}
@endif @else
{{ lang('The username in purchase details and the current logged-in username do not match. This customer seems invalid, please take appropriate action.') }} @if (Auth::user()->getRoleNames()[0] == 'superadmin')
@endif
@endif @else
{{ lang('The username in purchase details and the current logged-in username do not match. Verify customer details and proceed to the next step.') }}
@endif @endif @if ($ticket->ticketassignmutliples->isNotEmpty() && $ticket->selfassignuser_id == null) @php $toassignusers = $ticket->ticketassignmutliples; $condition = false; @endphp @foreach ($toassignusers as $toassignuser) @if ($toassignuser->toassignuser->id == Auth::id()) @php $condition = true; @endphp @endif @endforeach @if ($condition) @if ($ticket->status != 'Closed')
{{ lang('This ticket is assigned to you please respond.') }}
@endif @else
{{ lang('This ticket has already been assigned to another employee.') }}
@endif @elseif($ticket->ticketassignmutliples->isEmpty() && $ticket->selfassignuser_id != null) @if ($ticket->selfassignuser_id != Auth::id())
{{ lang('This ticket has already been assigned to another employee.') }}
@else
{{ lang('This ticket has been selfassigned by you, please respond.') }}
@endif @else @endif

loading.. Please Wait

@if ($ticket->importantticket == 'on' && $ticket->status != 'Closed')
@endif @php $empGoogleTranslate = App\Models\Setting::where('key', 'emp_google_translate')->value('value') @endphp

{{ $ticket->subject }}

@if($empGoogleTranslate == 'on') @endif
{{ lang('Created At') }} @if (\Carbon\Carbon::parse($ticket->created_at)->timezone(timeZoneData())->format('Y-m-d') == now()->timezone(timeZoneData())->format('Y-m-d')) {{ \Carbon\Carbon::parse($ticket->created_at)->timezone(timeZoneData())->format('h:i A') }} ({{ \Carbon\Carbon::parse($ticket->created_at)->timezone(timeZoneData())->diffForHumans() }}) @else {{ \Carbon\Carbon::parse($ticket->created_at)->timezone(timeZoneData())->format('D, d M Y, h:i A') }} ({{ \Carbon\Carbon::parse($ticket->created_at)->timezone(timeZoneData())->diffForHumans() }}) @endif
@if ($ticket->tickettype == 'emalitoticket') {!! nl2br(e($ticket->message)) !!} @else {!! $ticket->message !!} @endif
@if ($ticket->emailticketfile != null) @if ($ticket->emailticketfile == 'mismatch') {{ lang('Upload Failed') }} @else @php $arraytype = explode(',', $ticket->emailticketfile); @endphp @foreach ($arraytype as $arraytypes) @if ($arraytypes != 'undefined') @php $arrayextension = explode('.', $arraytypes); if (isset($arrayextension[1])) { $finalextension = $arrayextension[1]; } else { $finalextension = null; } @endphp @if ($finalextension)
@if ($finalextension == 'jpg' || $finalextension == 'jpeg' || $finalextension == 'JPG') @elseif($finalextension == 'pdf') @elseif($finalextension == 'csv') @elseif($finalextension == 'png') @else @endif

{{ $arrayextension[0] }}

.{{ $arrayextension[1] }}
@endif @endif @endforeach @endif @endif @foreach ($ticket->getMedia('ticket') as $ticketss) @php $a = explode('.', $ticketss->file_name); $aa = $a[1]; @endphp
@if ($aa == 'jpg' || $aa == 'jpeg' || $aa == 'JPG') @elseif($aa == 'pdf') @elseif($aa == 'csv') @elseif($aa == 'png') @else @endif

{{ $a[0] }}

.{{ $a[1] }}
@endforeach
@if ($ticket->overduestatus != null)
{{ $ticket->overduestatus}}
@endif
@php $customfields = $ticket->ticket_customfield()->get(); @endphp @if ($customfields->isNotEmpty()) @foreach ($customfields as $customfield) @if ($customfield->fieldtypes == 'textarea') @if ($customfield->privacymode == '1') @php $extrafieldds = decrypt($customfield->values); @endphp

{{ $customfield->fieldnames }}

{{ $extrafieldds }}
@else

{{ $customfield->fieldnames }}

{{ $customfield->values }}
@endif @endif @endforeach @endif {{-- @dump('here') --}} {{-- Reply Ticket Display --}} @if ($ticket->ticketassignmutliples->isNotEmpty() && $ticket->selfassignuser_id == null) @if (!empty(Auth::user()->getRoleNames()[0]) && Auth::user()->getRoleNames()[0] == 'superadmin') @include('admin.viewticket.showticketdata.showticketinclude') @elseif(in_array(Auth::id(), $array)) @include('admin.viewticket.showticketdata.showticketinclude') @else @endif @elseif($ticket->ticketassignmutliples->isEmpty() && $ticket->selfassignuser_id != null) @if (!empty(Auth::user()->getRoleNames()[0]) && Auth::user()->getRoleNames()[0] == 'superadmin') @include('admin.viewticket.showticketdata.showticketinclude') @elseif($ticket->selfassignuser_id == Auth::id()) @include('admin.viewticket.showticketdata.showticketinclude') @else @endif @else @include('admin.viewticket.showticketdata.showticketinclude') @endif {{-- End Reply Ticket Display --}} {{-- Comments Display --}}
@if ($comments->isNOtEmpty())

{{ lang('Conversations') }}

@if ($ticket->status == 'Closed') @can('Article Create') @endcan @endif
{{ csrf_field() }}
@include('admin.viewticket.showticketdata')
@endif
{{-- End Comments Display --}}
@if ($ticket->ticketassignmutliples->isNotEmpty() && $ticket->selfassignuser_id == null) @if (!empty(Auth::user()->getRoleNames()[0]) && Auth::user()->getRoleNames()[0] == 'superadmin') @include('admin.viewticket.showticketdata.ticketinfooter') @elseif(in_array(Auth::id(), $array)) @include('admin.viewticket.showticketdata.ticketinfooter') @else @include('admin.viewticket.showticketdata.ticketinfo') @endif @elseif($ticket->ticketassignmutliples->isEmpty() && $ticket->selfassignuser_id != null) @if (!empty(Auth::user()->getRoleNames()[0]) && Auth::user()->getRoleNames()[0] == 'superadmin') @include('admin.viewticket.showticketdata.ticketinfooter') @elseif($ticket->selfassignuser_id == Auth::id()) @include('admin.viewticket.showticketdata.ticketinfooter') @else @include('admin.viewticket.showticketdata.ticketinfo') @endif @else @include('admin.viewticket.showticketdata.ticketinfooter') @endif @if($ticket->invoice)

{{ lang('Assigned Invoice') }}

{{lang('Invoice ID')}}: #{{$ticket->invoice->invoiceId}} {{lang('View Invoice')}}
@endif @php $hashids = app(\Hashids\Hashids::class); $ticket->encrypted_id = $hashids->encode($ticket->id); @endphp

{{ lang('Assign Activity') }}

    @if ($ticket->user_id == null) @if ($ticket->cust != null)
  • @if ($ticket->cust->voilated == 'on') @endif @if ($ticket->cust->image == null) default @else {{ $ticket->cust->image }} @endif

    {{ lang('Created By') }}

    {{ $ticket->cust->username }} ({{ lang($ticket->cust->userType) }}) @if ($ticket->status == 'Closed') @endif

    {{-- @if ($ticket->status == 'Closed')

    {{ lang('Closed') }}

    @endif --}}
    {{ \Carbon\Carbon::parse($ticket->created_at)->timezone(timeZoneData())->format(setting('date_format')) }}
    {{ \Carbon\Carbon::parse($ticket->created_at)->timezone(timeZoneData())->format(setting('time_format')) }}
  • @endif @endif @if ($ticket->user_id != null) @if ($ticket->users != null)
  • @if ($ticket->users->image == null) default @else {{ $ticket->users->image }} @endif

    {{ lang('Created By') }}

    {{ $ticket->users->name }} @if (!empty($ticket->users->getRoleNames()[0])) ({{ $ticket->users->getRoleNames()[0] }}) @endif

    {{ \Carbon\Carbon::parse($ticket->created_at)->timezone(timeZoneData())->format(setting('date_format')) }}
    {{ \Carbon\Carbon::parse($ticket->created_at)->timezone(timeZoneData())->format(setting('time_format')) }}
  • @endif @endif @if ($ticket->selfassignuser_id != null) @if ($ticket->selfassign != null)
  • @if ($ticket->selfassign->image == null) default @else {{ $ticket->selfassign->image }} @endif

    {{ $ticket->selfassign->name }} @if (!empty($ticket->selfassign->getRoleNames()[0])) ({{ $ticket->selfassign->getRoleNames()[0] }}) @endif

    {{ lang('Self Assigned') }}

    {{ \Carbon\Carbon::parse($ticket->updated_at)->timezone(timeZoneData())->format(setting('date_format')) }}
    {{ \Carbon\Carbon::parse($ticket->updated_at)->timezone(timeZoneData())->format(setting('time_format')) }}
  • @endif @endif @if ($ticket->selfassignuser_id == null) @if ($ticket->myassignuser != null)
  • @if ($ticket->myassignuser->image == null) default @else {{ $ticket->myassignuser->image }} @endif

    {{ $ticket->myassignuser->name }} @if (!empty($ticket->myassignuser->getRoleNames()[0])) ({{ $ticket->myassignuser->getRoleNames()[0] }}) @endif

    {{ lang('Assigner') }}

    {{ \Carbon\Carbon::parse($ticket->updated_at)->timezone(timeZoneData())->format(setting('date_format')) }}
    {{ \Carbon\Carbon::parse($ticket->updated_at)->timezone(timeZoneData())->format(setting('time_format')) }}
  • @endif @php $toassignusers = $ticket->ticketassignmutliples; @endphp @if ($toassignusers->isNOtEmpty()) @foreach ($toassignusers as $toassignuser) @if ($toassignuser->toassignuser != null)
  • @if ($toassignuser->toassignuser->image == null) default @else {{ $toassignuser->toassignuser->image }} {{-- {{$toassignuser->toassignuser->image}} --}} @endif

    {{ $toassignuser->toassignuser->name }} @if (!empty($toassignuser->toassignuser->getRoleNames()[0])) ({{ $toassignuser->toassignuser->getRoleNames()[0] }}) @endif

    {{ lang('Assignee') }}

    {{ \Carbon\Carbon::parse($ticket->updated_at)->timezone(timeZoneData())->format(setting('date_format')) }}
    {{ \Carbon\Carbon::parse($ticket->updated_at)->timezone(timeZoneData())->format(setting('time_format')) }}
  • @endif @endforeach @endif @endif @if ($ticket->closedby_user != null)
  • @if ($ticket->closedusers->image == null) default @else {{ $ticket->closedusers->image }} @endif

    {{ $ticket->closedusers->name }} @if (!empty($ticket->closedusers->getRoleNames()[0])) ({{ $ticket->closedusers->getRoleNames()[0] }}) @endif

    {{ lang('Closed') }}

    {{ \Carbon\Carbon::parse($ticket->updated_at)->timezone(timeZoneData())->format(setting('date_format')) }}
    {{ \Carbon\Carbon::parse($ticket->updated_at)->timezone(timeZoneData())->format(setting('time_format')) }}
  • @endif
{{ lang('Customer Details') }}
@if ($custsimillarticket > 1) @endif
@if ($ticket->cust->image == null) default @else {{ $ticket->cust->image }} {{-- {{$ticket->cust->image}} --}} @endif
@if ($ticket->cust->voilated == 'on') @endif
{{ $ticket->cust->username }}
{{ $ticket->cust->firstname }} {{ $ticket->cust->lastname }}
{{ $ticket->cust->email }}
{{ lang('IP') }} : {{ $ticket->cust->last_login_ip }}
{{ lang('Mobile Number') }} : {{ $ticket->cust->phone }}
{{ lang('Country') }} : @if ($ticket->cust->country != null) {{ lang($ticket->cust->country) }}@else{{ $ticket->cust->country }} @endif
{{ lang('Timezone') }} : @if ($ticket->cust->timezone != null) {{ lang($ticket->cust->timezone) }}@else{{ $ticket->cust->timezone }} @endif
{{ lang('Ticket Note') }}
{{-- @if ($ticket->status != 'Closed') --}} {{-- @endif --}}
@php $emptynote = $ticket->ticketnote()->get() @endphp @if ($emptynote->isNOtEmpty())
@foreach ($ticket->ticketnote()->latest()->get() as $note) @endforeach
@else

{{ lang('Don’t have any notes yet') }}

{{ lang('Add your notes here') }}
@endif
@if (setting('cust_or_tick_violation') == 'yes')
{{ __('Violation Note') }}
{{-- @if ($ticket->status != 'Closed') --}} {{-- @endif --}}
@php $ticketviolation = $ticket->ticketviolation()->get() @endphp @if ($ticketviolation->isNOtEmpty())
@foreach ($ticket->ticketviolation()->latest()->get() as $ticketviolation) @endforeach
@else

{{ lang('Don’t have any violation yet') }}

{{ lang('Add violation here') }}
@endif
@endif
@include('includes.texttranslationmodal') @include('admin.viewticket.modalpopup.permissionmodalpopup') @endsection @section('scripts') @include('includes.admin.googletranslate') @vite(['resources/assets/js/support/support-ticketview.js']) @vite(['resources/assets/js/select2.js']) @vite(['resources/assets/js/jquery.showmore.js']) {{-- Script for google translate --}} @endsection @section('modal') @include('admin.modalpopup.assignmodal') @include('admin.viewticket.modalpopup.categorymodalpopup') @endsection