@extends('admin.layouts.master') @section('content')
|
@endcan
{{ trans('app.image') }} | {{ trans('app.blog_title') }} | {{ trans('app.author') }} | {{ trans('app.date') }} | ||
---|---|---|---|---|---|---|
@endcan |
@can('update', $blog)
{!! $blog->title !!}
@else
{!! $blog->title !!}
@endcan
{!! $blog->excerpt !!} @if (!$blog->status) {{ strtoupper(trans('app.draft')) }} @endif |
{{ $blog->author ? $blog->author->getName() : '' }} | {{ $blog->comments_count }} |
@if ($blog->status)
{{ trans('app.published_at') }} {{ optional($blog->published_at)->toFormattedDateString() }} @else {{ trans('app.updated_at') }} {{ $blog->updated_at->toFormattedDateString() }} @endif |
@can('update', $blog) @endcan @can('delete', $blog) {!! Form::open(['route' => ['admin.utility.blog.trash', $blog->id], 'method' => 'delete', 'class' => 'data-form']) !!} {!! Form::button('', ['type' => 'submit', 'class' => 'confirm ajax-silent', 'title' => trans('app.trash'), 'data-toggle' => 'tooltip', 'data-placement' => 'top']) !!} {!! Form::close() !!} @endcan |