@extends('layouts.usermaster') @section('styles') @endsection @section('content')
@if($ticket->purchasecode != null && 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
{{lang('Ticket Information')}}
@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") {{ $ticket->status }} @elseif($ticket->status == "Re-Open") {{ $ticket->status }} @elseif($ticket->status == "Inprogress") {{ $ticket->status }} @elseif($ticket->status == "On-Hold") {{ $ticket->status }} @else {{ $ticket->status }} @endif
{{lang('Reply Status')}} : @if($ticket->replystatus == "Solved") {{ $ticket->replystatus }} @elseif($ticket->replystatus == "Unanswered") {{ $ticket->replystatus }} @elseif($ticket->replystatus == "Waiting Response") {{ $ticket->replystatus }} @else @endif
{{$customfield->fieldnames}} : {{$extrafiels}}
{{$customfield->fieldnames}} : {{$customfield->values}}
@if($addspace)
@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

{{ $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
@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 @endif @endif @endforeach @endif {{-- Reply Ticket Display --}} @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. 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('GUEST_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('guestticket.showdataticket')
@endif
@include('includes.texttranslationmodal')
@endsection @section('scripts') @vite(['resources/assets/js/support/support-ticketview.js']) @vite(['resources/assets/js/jquery.showmore.js']) @endsection