@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)
{{lang('This ticket is assigned to you please respond.')}}
@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

{{ $ticket->subject }}

{{lang('Created At')}} @if($ticket->created_at->timezone(setting('default_timezone'))->format('Y-m-d') == now()->timezone(setting('default_timezone'))->format('Y-m-d')) {{ $ticket->created_at->timezone(setting('default_timezone'))->format('h:i A') }} ({{ $ticket->created_at->timezone(setting('default_timezone'))->diffForHumans() }}) @else {{ $ticket->created_at->timezone(setting('default_timezone'))->format('D, d M Y, h:i A') }} ({{ $ticket->created_at->timezone(setting('default_timezone'))->diffForHumans() }}) @endif
{!! $ticket->message !!}
@if($ticket->emailticketfile != null) @if($ticket->emailticketfile == 'mismatch')

{{lang('Upload Failed')}}

@else @php $arraytype = explode(',', $ticket->emailticketfile); @endphp @foreach($arraytype as $arraytypes) @php $arrayextension = explode('.', $arraytypes); $finalextension = $arrayextension[1]; @endphp
@if($finalextension == 'jpg' || $finalextension == 'jpeg' || $finalextension == 'JPG') @elseif($finalextension == 'pdf') @elseif($finalextension == 'csv') @elseif($finalextension == 'png') @else @endif

{{ $arrayextension[0] }}

.{{ $arrayextension[1] }}
@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
@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 {{-- 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') @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

{{lang('Assign Activity')}}

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

    {{lang('Created By')}}

    {{$ticket->cust->username}} ({{lang($ticket->cust->userType)}})

    {{$ticket->created_at->timezone(setting('default_timezone'))->format(setting('date_format'))}}
    {{$ticket->created_at->timezone(setting('default_timezone'))->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

    {{$ticket->created_at->timezone(setting('default_timezone'))->format(setting('date_format'))}}
    {{$ticket->created_at->timezone(setting('default_timezone'))->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')}}

  • @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')}}

  • @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}} @endif

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

    {{lang('Assignee')}}

  • @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

    Closed

    {{$ticket->updated_at->timezone(setting('default_timezone'))->format(setting('date_format'))}}
    {{$ticket->updated_at->timezone(setting('default_timezone'))->format(setting('time_format'))}}
  • @endif
{{lang('Customer Details')}}
@if($custsimillarticket > 1) @endif
@if ($ticket->cust->image == null) default @else {{$ticket->cust->image}} @endif
@if($ticket->cust->voilated == 'on') {{lang('Voilation')}} @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
@endsection @section('scripts') @endsection @section('modal') @if(setting('enable_gpt') == 'on') @endif @include('admin.modalpopup.assignmodal') @include('admin.viewticket.modalpopup.categorymodalpopup') @endsection