@extends('layouts.usermaster') @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('Puchase Code') }} :

{{ Str::padLeft(Str::substr(decrypt($ticket->purchasecode), -4), Str::length(decrypt($ticket->purchasecode)), Str::padLeft('*', 1)) }}
@if ($ticket->purchasecodesupport == 'Supported') {{ lang('Support Active') }} @elseif($ticket->purchasecodesupport == 'Expired') {{ lang('Support Expired') }}

{{ lang('Your support for this item has expired. You may still leave a comment but please renew support if you are asking the author for help. View the item support policy') }}

@else @endif
@endif @else

{{ lang('Puchase Code') }} :

{{ Str::padLeft(Str::substr($ticket->purchasecode, -4), Str::length($ticket->purchasecode), Str::padLeft('*', 1)) }}
@if ($ticket->purchasecodesupport == 'Supported') {{ lang('Support Active') }} @elseif($ticket->purchasecodesupport == 'Expired') {{ lang('Support Expired') }}

{{ lang('Your support for this item has expired. You may still leave a comment but please renew support if you are asking the author for help. View the item support policy') }}

@else @endif
@endif @endif
{{ lang('Ticket Information') }}
@if (setting('CUSTOMER_TICKET') == 'no') @endif
@php $ccemailsend = \App\Models\CCMAILS::where('ticket_id', $ticket->id,)->first(); @endphp @if ($ccemailsend && $ccemailsend->ccemails) @endif @if ($ticket->subcategory != null) @endif @if ($ticket->item_name != null) @endif @if ($ticket->project != null) @endif @if ( ($ticket->replystatus != null && $ticket->replystatus == 'Solved') || $ticket->replystatus == 'Unanswered' || $ticket->replystatus == 'Waiting Response') @endif @php $customfields = $ticket->ticket_customfield()->get(); @endphp @if ($customfields->isNotEmpty()) @foreach ($customfields as $customfield) @if ($customfield->fieldtypes != 'textarea') @if ($customfield->privacymode == '1') @php $extrafiels = decrypt($customfield->values); @endphp @else @endif @endif @endforeach @endif
{{ lang('Ticket ID') }} : #{{ $ticket->ticket_id }}
{{ lang('CC Mail') }} : {{ $ccemailsend->ccemails }}
{{ lang('Category') }} : @if ($ticket->category_id != null) @if ($ticket->category != null) {{ $ticket->category->name }} @else ~ @endif @else ~ @endif
{{ lang('SubCategory') }} : {{ $ticket->subcategories != null ? $ticket->subcategories->subcatlists->subcategoryname : '~' }}
{{ lang('Item name') }} : {{ $ticket->item_name }}
{{ lang('Project') }} : {{ $ticket->project }}
{{ lang('Opened Date') }} : {{ \Carbon\Carbon::parse($ticket->created_at)->format(setting('date_format')) }}
{{ lang('Status') }} : @if ($ticket->status == 'New') {{ lang($ticket->status) }} @elseif($ticket->status == 'Re-Open') {{ lang($ticket->status) }} @elseif($ticket->status == 'Inprogress') {{ lang($ticket->status) }} @elseif($ticket->status == 'On-Hold') {{ lang($ticket->status) }} @else {{ lang($ticket->status) }} @endif
{{ lang('Reply Status') }} : @if ($ticket->replystatus == 'Solved') {{ lang($ticket->replystatus) }} @elseif($ticket->replystatus == 'Unanswered') {{ lang($ticket->replystatus) }} @elseif($ticket->replystatus == 'Waiting for response') {{ lang($ticket->replystatus) }} @else @endif
{{ $customfield->fieldnames }} : {{ $extrafiels }}
{{ $customfield->fieldnames }} : {{ $customfield->values }}
@if($ticket->invoice)

@if($ticket->invoice->status == 'paid') {{lang('Invoice')}} @else {{ lang('Quotation') }} @endif

{{lang('ID')}}: #{{$ticket->invoice->invoiceId}} {{lang('View')}}
@endif @if($addspace && $addspace->isNotEmpty())
@endif @if (setting('businesshoursswitch') == 'on')
@if (setting('supporticonimage') != null) img @else img @endif
{{-- @php $now = now(); $holidays = App\Models\Holiday::whereDate( 'startdate', '<=', $now->toDateString(), ) ->whereDate('enddate', '>=', $now->toDateString()) ->where('status', '1') ->get(); @endphp --}}

{{ setting('businesshourstitle') }} @if ($holidays->isNotEmpty() && setting('24hoursbusinessswitch') != 'on') {{ lang('offline') }} @else @foreach (bussinesshour() as $bussiness) @if (now()->timezone(setting('default_timezone'))->format('D') == $bussiness->weeks) @if ( (strtotime($bussiness->starttime) <= strtotime(now()->timezone(setting('default_timezone'))->format('h:i A')) && strtotime($bussiness->endtime) >= strtotime(now()->timezone(setting('default_timezone'))->format('h:i A'))) || $bussiness->starttime == '24H') @if ($bussiness->starttime != '24H') {{ lang('online') }} @else {{ lang('online') }} @endif @else @if ($bussiness->starttime != '24H') {{ lang('offline') }} @else {{ lang('offline') }} @endif @endif @endif @endforeach @endif

{{ setting('businesshourssubtitle') }}

    @forelse ($holidays as $holiday) @php $datetimeall = []; for ( $i = (int) \Carbon\Carbon::parse($holiday->startdate)->format( 'd', ); $i <= (int) \Carbon\Carbon::parse($holiday->enddate)->format('d'); $i++ ) { $datetimeformat = \Carbon\Carbon::parse( now()->format('Y-m-') . '' . $i, ); array_push($datetimeall, $datetimeformat->format('D')); } @endphp @empty @endforelse @foreach (bussinesshour() as $bussiness) @if ($bussiness->weeks != null)
  • {{ lang($bussiness->weeks) }}
    @if (now()->timezone(setting('default_timezone'))->format('D') == $bussiness->weeks) {{ lang('Today') }} @endif
    @if ($bussiness->status == 'Closed') {{ lang($bussiness->status) }} @else @if ($holidays->isNotEmpty() && setting('24hoursbusinessswitch') != 'on') @if (in_array($bussiness->weeks, $datetimeall)) {{ lang('Closed') }} @else {{ $bussiness->starttime }} @if ($bussiness->starttime !== null && $bussiness->endtime != null) - @endif @if ($bussiness->starttime !== null && $bussiness->endtime) {{ $bussiness->endtime }} @endif @endif @else @if ($holidays->isNotEmpty() && setting('24hoursbusinessswitch') != 'on' && in_array($bussiness->weeks, $datetimeall)) {{ lang('Closed') }} @else {{ $bussiness->starttime }} @if ($bussiness->starttime !== null && $bussiness->endtime != null) - @endif @if ($bussiness->starttime !== null && $bussiness->endtime) {{ $bussiness->endtime }} @endif @endif @endif @endif
  • @endif @endforeach
@endif
@if ($ticket->usernameverify != 'verified' && $ticket->cust->logintype == 'envatosociallogin')
{{ lang('The item was purchased by a different user. The user details of the item purchaser and your current Helpdesk logged-in user details are different. Please log in to our support application with the same account that was used for the purchase. For some security and technical reasons, we cannot process this ticket further. We hope you understand. And please let us know if you have updated your Envato username so that we can verify your username update history and move forward.') }}
@endif

{{ $ticket->subject }}

{{ lang('Created Date') }} {{ \Carbon\Carbon::parse($ticket->created_at)->diffForHumans() }}
{!! $ticket->message !!}
@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
{{-- Reply Ticket Display --}} {{-- @dump('here') --}} @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 @if ($holidays->isNotEmpty() && setting('24hoursbusinessswitch') != 'on') @foreach ($holidays as $anct) @endforeach @else @php $createdtime = now(); @endphp @foreach (bussinesshour() as $bussiness) @if ($createdtime->timezone(setting('default_timezone'))->format('D') == $bussiness->weeks) @if ( (strtotime($bussiness->starttime) <= strtotime($createdtime->timezone(setting('default_timezone'))->format('h:i A')) && strtotime($bussiness->endtime) >= strtotime($createdtime->timezone(setting('default_timezone'))->format('h:i A'))) || $bussiness->starttime == '24H') @else @if(setting('businesshourofflinemsg') == 'on') @endif @endif @endif @endforeach @endif @if ($ticket->status == 'Closed') @if (setting('USER_REOPEN_ISSUE') == 'yes' && $ticket->ticketreopen == null) @if (setting('USER_REOPEN_TIME') == '0')
@csrf

{{ lang('This ticket is closed. Do you want to reopen it?') }}

@else @if ($ticket->closing_ticket != null) @if (now()->format('Y-m-d') < \Carbon\Carbon::parse($ticket->closing_ticket)->addDays(setting('USER_REOPEN_TIME'))->format('Y-m-d'))
@csrf
{{ lang('This ticket is closed.') }} {{ lang('Do you want to reopen it?') }}
@endif @endif @endif @endif @elseif ($ticket->status == 'On-Hold') @else @if ($comments->isNotEmpty()) @if ($ticket->status != 'Suspend') @if ($createdcount != null && $createdcount >= setting('MAXIMUM_ALLOW_REPLIES')) @else
@endif @endif @else @if ($ticket->status != 'Suspend')

{{ lang('Reply Ticket') }}

@csrf
@error('comment') {{ lang($message) }} @enderror @if ( (setting('USER_FILE_UPLOAD_ENABLE') == 'yes' && $ticket->fileupload_allowed != 'denied') || $ticket->fileupload_allowed == 'once' || $ticket->fileupload_allowed == 'always' )
{{ lang('The file size should not be more than', 'filesetting') }} {{ setting('FILE_UPLOAD_MAX') }}{{ lang('MB', 'filesetting') }}
@endif
@endif @endif @endif
@if ($comments->isNotEmpty())

{{ lang('Conversations') }}

@include('user.ticket.showticketdata')
@endif
@include('includes.texttranslationmodal') @endsection @section('scripts') @vite(['resources/assets/js/support/support-ticketview.js']) @vite(['resources/assets/js/jquery.showmore.js']) @endsection