@forelse($listresults as $question)
{{-- Content --}}
@if ($question->is_pinned) {{ __('labels.pinned') }} @endif {{ __("labels.status_{$question->status}") }} @if ($question->category) {{ $question->category->name }} @endif @if ($question->asked_by == auth()->user()->id) {{ __('labels.you_asked') }} @elseif (auth()->user()->isExpert() && $question->expert_id == auth()->user()?->expert?->id) {{ __('labels.assigned_to_you') }} @endif
{{ $question->title }}
@can('view', $question) @endcan @can('update', $question) @endcan @can('delete', $question) @endcan

{{ Str::limit(strip_tags($question->question), 150) }}

{{-- Asker --}}
@if ($question->is_anonymous)
{{ __('labels.anonymous') }} @else @if ($question->asker->avatar) {{ $question->asker->name }} @else
{{ strtoupper(substr($question->asker->name, 0, 1)) }}
@endif {{ $question->asker->name }} @endif
{{-- Expert --}} @if ($question->expert)
@if ($question->expert->user->avatar) {{ $question->expert->user->name }} @else
{{ strtoupper(substr($question->expert->user->name, 0, 1)) }}
@endif {{ $question->expert->user->name }}
@endif
{{ $question->created_at->diffForHumans() }} {{ $question->views }} @if ($question->answered_at) {{ __('labels.answered') }} {{ $question->answered_at->diffForHumans() }} @endif
@empty

{{ __('messages.no_questions_found') }}

@auth {{ __('labels.ask_first_question') }} @endauth
@endforelse