@extends('front.layout') @section('css') @if (Auth::check()) @endif @endsection @section('main')
@if (session('warning')) @component('front.components.alert') @slot('type') notice @endslot {!! session('warning') !!} @endcomponent @endif

{{ $post->valid_comments_count }} {{ trans_choice(__('comment|comments'), $post->valid_comments_count) }}

@if ($post->valid_comments_count) @php $level = 0; @endphp
    @include('front/comments/comments', ['comments' => $parentComments])
@if ($post->parent_comments_count > config('app.numberParentComments'))

@lang('More comments')

@endif @endif

@lang('Leave a Comment')

@if (Auth::check())
{{ csrf_field() }}
@if ($errors->has('message')) @component('front.components.error') {{ $errors->first('message') }} @endcomponent @endif
@else @lang('You must be logged to add a comment !') @endif
@endsection @section('scripts') @if (auth()->check()) @endif @endsection