@php Theme::asset()->add('fob-comment-css', asset('vendor/core/plugins/fob-comment/css/comment.css'), version: '1.2.3'); Theme::asset() ->container('footer') ->add('fob-comment-js', asset('vendor/core/plugins/fob-comment/js/comment.js'), ['jquery'], version: '1.2.3'); Theme::registerToastNotification(); use FriendsOfBotble\Comment\Forms\Fronts\CommentForm; $fobPrimaryColor = setting('fob_comment_primary_color'); $fobPrimaryColorHover = setting('fob_comment_primary_color_hover'); @endphp @if ($fobPrimaryColor || $fobPrimaryColorHover) @endif
@for ($i = 0; $i < 2; $i++)
@endfor

{{ trans('plugins/fob-comment::comment.front.form.title') }}

@if (FriendsOfBotble\Comment\Support\CommentHelper::isGuestCommentDisabled() && ! FriendsOfBotble\Comment\Support\CommentHelper::getAuthorizedUser())
@php $loginRoute = match (true) { Route::has('public.member.login') => route('public.member.login'), Route::has('login') => route('login'), default => null, }; @endphp @if ($loginRoute) @endif
@else

@if (FriendsOfBotble\Comment\Support\CommentHelper::isEmailOptional()) {{ trans('plugins/fob-comment::comment.front.form.description_email_optional') }} @else {{ trans('plugins/fob-comment::comment.front.form.description') }} @endif

{!! CommentForm::createWithReference($model)->renderForm() !!} @endif