@extends('layouts.admin') @section('breadcrumb') @include('admin.partials.crumb',[ 'crumbs'=>[ route('admin.dashboard')=>__('default.dashboard'), route('admin.blog-posts.index')=>__lang('blog-posts'), '#'=>__lang('view') ]]) @endsection @section('pageTitle',__('default.blog-post').' :'.$blogpost->title) @section('innerTitle',__('default.blog-post').' :'.$blogpost->title) @section('content')
@can('access','view_blog')    @endcan @can('access','edit_blog')    @endcan @can('access','delete_blog')
{{ method_field('DELETE') }} {{ csrf_field() }}
@endcan

@lang('default.title')

{{ $blogpost->title }}

@lang('default.content')

{!! clean($blogpost->content) !!}

@lang('default.enabled')

{{ boolToString($blogpost->enabled) }}

@lang('default.cover-image')

@if(!empty($blogpost->cover_photo)) @endif

@lang('default.created-by')

@if($blogpost->admin()->exists()) {{ $blogpost->admin->user->name }} {{ $blogpost->admin->user->last_name }} @endif

@lang('default.meta-title')

{{ $blogpost->meta_title }}

@lang('default.meta-description')

{{ $blogpost->meta_description }}

@lang('default.categories')

@foreach($blogpost->blogCategories as $category)
  • {{ $category->name }}
  • @endforeach

    @lang('default.published-on')

    {{ $blogpost->publish_date }}
    @endsection