View file visavi-rotorcms-63832fa/app/views/news/view.blade.php

File size: 793B
@extends('layout')

@section('title', $news->title.' - @parent')
@section('breadcrumbs', App::breadcrumbs(['/news' => 'Новости сайта', $news->title]))

@section('content')

	<h1>{{ $news->title }}</h1>

	<div class="media">
		@if ($news->image)
			<div class="media-left">
				<a href="/uploads/news/{{ $news->image }}">картинка</a>
			</div>
		@endif
		<div class="media-body">
			<span class="pull-right text-muted small date">{{ Carbon::parse($news->created_at)->format('d.m.y / H:i') }}</span>

			<div>{!! App::bbCode(str_limit(e($news->text))) !!}</div>
		</div>
		<div>
			<span class="fa fa-user"></span> <a href="/user/{{ $news->user()->getLogin() }}">{{ $news->user()->getLogin() }}</a>
		</div>
	</div>

	{{ App::view('news._comments', compact('news')) }}
@stop