{{lang('Ticket Information')}}
@if($ticket->purchasecode != null ) @if (decrypt($ticket->purchasecode) != 'undefined')
@endif @endif @php $ccemailsend = \App\Models\CCMAILS::where('ticket_id', $ticket->id)->first(); @endphp @if ($ccemailsend && $ccemailsend->ccemails) @endif @if ($ticket->subcategory != null && $ticket->subcategoriess && $ticket->status != 'Closed') @endif @if ($ticket->item_name != null && $ticket->status != 'Closed') @endif @if($ticket->priority != null) @else @endif {{-- start tikcet note --}} {{-- end tikcet note --}}
{{lang('Ticket ID')}} : #{{ $ticket->ticket_id }}
{{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
{{lang('Open Date')}} : {{ \Carbon\Carbon::parse($ticket->created_at)->timezone(timeZoneData())->format(setting('date_format'))}}
{{lang('CC Mail')}} : {{ $ccemailsend->ccemails }}
{{lang('Category')}} : @if($ticket->deleted_at != null || $ticket->status == 'Closed') ~ @else @if($ticket->category_id != null) @if($ticket->category != null) {{ $ticket->category->name}} @can('Ticket Edit') @if ($ticket->status != 'Closed') @endif @endcan @else @can('Ticket Edit') @if ($ticket->status != 'Closed') @endif @endcan @endif @else @can('Ticket Edit') @if ($ticket->status != 'Closed') @endif @endcan @endif @endif
{{lang('SubCategory')}} : @if($ticket->subcategoriess != null) {{$ticket->subcategoriess->subcategoryname}} @else {{$ticket->subcategoriess->subcategoryname}} @endif
{{lang('Item name')}} : {{$ticket->item_name}}
{{lang('Priority')}} : @if($ticket->deleted_at != null || $ticket->status == 'Closed') ~ @else @if($ticket->priority == "Low") {{ lang($ticket->priority) }} @can('Ticket Edit') @if ($ticket->status != 'Closed') @endif @endcan @elseif($ticket->priority == "High") {{ lang($ticket->priority)}} @can('Ticket Edit') @if ($ticket->status != 'Closed') @endif @endcan @elseif($ticket->priority == "Critical") {{ lang($ticket->priority)}} @can('Ticket Edit') @if ($ticket->status != 'Closed') @endif @endcan @else {{ lang($ticket->priority) }} @can('Ticket Edit') @if ($ticket->status != 'Closed') @endif @endcan @endif @endif
{{lang('Priority')}} : @can('Ticket Edit') @if($ticket->deleted_at != null || $ticket->status == 'Closed') ~ @else @if ($ticket->status != 'Closed') @endif @endif @else ~ @endcan
{{lang('Note')}} : @can('Ticket Edit') @if($ticket->deleted_at != null || $ticket->status == 'Closed') ~ @else @if ($ticket->status != 'Closed')
{{ lang('Ticket Note') }}
@csrf @honeypot {{-- --}}
@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
@endif @endif @else ~ @endcan
{{lang('Status')}} : @can('Ticket Edit') @if($ticket->deleted_at != null) @else @if($ticket->status == 'Suspend' || $ticket->status == 'Closed') @if(Auth::user()->can('Closed Ticket Process'))
@else @endif @else
@endif @endif @else @endcan
{{lang('Assign')}} : @can('Ticket Assign') @if($ticket->status == 'Suspend' || $ticket->status == 'Closed' || $ticket->deleted_at != null)
@if($ticket->selfassignuser_id != null) @else @endif
@else @endif @else ~ @endcan