@php /** @var \LaraBB\Category\Models\Category $category */ /** @var \LaraBB\Forum\Models\Forum $forum */ /** @var \LaraBB\Thread\Models\Thread $thread */ /** @var \LaraBB\Post\Models\Post $post */ $threadStyle = config('larabb.thread-style'); @endphp @extends('layouts.master') @section('content') @include('partials.messages', ['autoHide' => 'auto-hide'])
{!! button('Create Posting')->permission($currentUser->forumPermissions[$forum->uuid]->getAttribute('create_posts')) ->type('link') ->href(route('reply', [$thread->slug])) ->class('btn btn-purple text-uppercase') ->icon('fas fa-fw fa-plus') ->render() !!}
@include('partials.breadcrumb', [ 'items' => [ ['href' => 'index', 'parameters' => null, 'label' => null, 'icon' => 'home'], ['href' => 'category', 'parameters' => [$category->slug], 'label' => $category->title], ['href' => 'forum', 'parameters' => [$forum->slug], 'label' => $forum->title, 'mobile' => true], ['label' => $thread->prefix->display_style . ' ' . $thread->title, 'mobile' => true], ] ])
@foreach($posts as $post)
last && $threadStyle != 'classic' ? ' style="border-bottom:3px solid #dadada;"' : '' !!}>
{{ $post->createdBy->username }} {{ $post->created_at->format($currentUser->profile->dateformat . ' - ' . $currentUser->profile->timeformat) }}
#{{ $post->id }}
@if($threadStyle != 'classic')
@endif
{!! $post->content !!}
@endforeach
{!! button('Create Posting')->permission($currentUser->forumPermissions[$forum->uuid]->getAttribute('create_posts')) ->type('link') ->href(route('reply', [$thread->slug])) ->class('btn btn-purple text-uppercase') ->icon('fas fa-fw fa-plus') ->render() !!}
@stop