@extends('layouts.student') @section('pageTitle',$forumTopic->title) @section('innerTitle',__lang('forum-topic')) @section('breadcrumb') @include('admin.partials.crumb',[ 'crumbs'=>$customCrumbs]) @endsection @section('content')

@lang('default.by') {{ $forumTopic->user->name }} @lang('default.on') {{ \Carbon\Carbon::parse($forumTopic->created_at)->format('D d/M/Y') }}

@foreach($posts as $thread)

{{ $thread->user->name }}

{{ \Carbon\Carbon::parse($thread->created_at)->format('D d/M/Y') }}
{{ \Carbon\Carbon::parse($thread->created_at)->diffForHumans() }}
@if($thread->postReply)

{{ $thread->postReply->user->name }}

{{ \Carbon\Carbon::parse($thread->postReply->created_at)->format('D d/M/Y') }}
{{ \Carbon\Carbon::parse($thread->postReply->created_at)->diffForHumans() }}

{!! clean($thread->postReply->message) !!}
@endif

{!! clean($thread->message) !!}

{{ __lang('reply') }}

@csrf
@section('footer') @parent @endsection
@endforeach @if ($posts->hasPages())
{{ $posts->links() }}
@endif
{{ __lang('notifications') }}

@lang('default.reply')

@csrf
@endsection @section('header') @endsection @section('footer') @endsection