@extends('layouts.admin.master') @section('title') {{ __('messages.blog.view_blog') }} @endsection @push('css') @endpush @section('content')

View Blog

Back @php $user = auth()->user(); $isAdmin = $user && $user->user_type == \App\Models\UserManagement\User::ADMIN_USER_CODE; $isOwner = $user && $blog->created_by == $user->id; @endphp @if($isAdmin || $isOwner) Edit @endif
{{-- title --}}
{{ $blog->name }}
{{-- description --}}
{!! $blog->description ?: '-' !!}
{{-- status --}}
{{ $blog->is_active ? __('generic.active') : __('generic.inactive') }}
{{-- category --}}
{{ $blog->category ? $blog->category->name : '-' }}
{{-- thumbnail Image --}} Thumbnail
{{-- Blog Attachments --}}
@if($blog->attachments && $blog->attachments->count())
@foreach($blog->attachments as $attachment)
{{ $attachment->original_name }} ({{ $attachment->formatted_file_size }})
@endforeach
@else
No attachments found
@endif
@endsection