@extends('layouts.front') @section('title', $idea->title) @section('content') @php $markdown = new Parsedown(); if (method_exists($markdown, 'setSafeMode')) { $markdown->setSafeMode(true); } @endphp
@include('shared/alerts')
@auth
@csrf
@else
{{ $idea->votes_count }}
{{ __('idea::lang.actions.login_to_vote') }}
@endauth
{{ __('idea::lang.statuses.' . $idea->status) }} @foreach($idea->tags as $tag) {{ $tag->name }} @endforeach

{{ $idea->title }}

{{ __('idea::lang.by') }} {{ $idea->customer?->excerptFullName() ?? __('idea::lang.deleted_user') }}

{!! $markdown->text($idea->description ?: '') !!}
@if($idea->response)

{{ __('idea::lang.official_response') }}

{!! $markdown->text($idea->response) !!}
@endif @auth
@csrf
@endauth

{{ __('idea::lang.comments') }}

@auth
@csrf @include('shared/textarea', ['name' => 'content', 'label' => __('idea::lang.add_comment'), 'value' => old('content'), 'rows' => 4])
@else {{ __('idea::lang.actions.login_to_comment') }} @endauth
@forelse($comments as $comment)
{{ $comment->customer?->excerptFullName() ?? $comment->admin?->username ?? __('idea::lang.deleted_user') }} ยท {{ $comment->created_at?->format('d/m/Y H:i') }}
{!! $markdown->text($comment->content) !!}
@empty

{{ __('idea::lang.no_comments') }}

@endforelse
{{ $comments->links('shared.layouts.pagination') }}
@endsection