@extends('admin._layouts.fileupload') @section('header') @parent @endsection @section('content')
@if($obj->id)

Edit Blog

@else

Create new Blog

@endif
@if(auth()->user()->can($permissions['create'])) @endif
@include('admin._partials.notifications') @if($obj->id)
@else @endif @csrf id) value="{{encrypt($obj->id)}}" @endif id="inputId">
Basic Details
The “slug” is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.
@fieldshow(blogs-title)
@endfieldshow @fieldshow(blogs-short_description)
@endfieldshow
@if(isset($section_items) && count($section_items)) @php $i=0; @endphp @foreach($section_items as $item)
@php $i++; @endphp @endforeach @endif
@fieldshow(blogs-seo)
SEO
@fieldshow(blogs-bottom_description)
@endfieldshow @fieldshow(blogs-browser_title)
@endfieldshow @fieldshow(blogs-meta_keywords)
@endfieldshow @fieldshow(blogs-meta_description)
@endfieldshow
@endfieldshow @fieldshow(blogs-extra_data)
Extra Data
@fieldshow(blogs-og_title)
@endfieldshow @fieldshow(blogs-og_description)
@endfieldshow @fieldshow(blogs-extra_js)
@endfieldshow
@endfieldshow
Publish
@fieldshow(blogs-published_on)
@endfieldshow @fieldshow(blogs-published_by) {{--
--}} {{--
--}}
@endfieldshow
id || $obj->status == 1) checked="" @endif>
@fieldshow(blogs-is_featured)
is_featured == 1) checked="checked" @endif>
@endfieldshow
@if(!$obj->id) {{date('d M, Y h:i A')}} @else {{date('d M, Y h:i A', strtotime($obj->created_at))}} @endif
@if(!$obj->id) {{date('d M, Y h:i A')}} @else {{date('d M, Y h:i A', strtotime($obj->updated_at))}} @endif
@if(!$obj->id) {{auth()->user()->name}} @else {{$obj->created_user->name}} @endif
@if(!$obj->id) {{auth()->user()->name}} @else {{$obj->updated_user->name}} @endif
@fieldshow(blogs-category_id)
Category
@endfieldshow @fieldshow(blogs-tags)
Tags
@php $selected_tags = []; if($obj->id && count($obj->tags)) $selected_tags = $obj->tags->pluck('id')->toArray(); @endphp
@endfieldshow @fieldshow(blogs-priority)
Priority
@endfieldshow @fieldshow(blogs-faq) @if($obj->id) @endif @endfieldshow @fieldshow(blogs-featured_image_id)
Featured Image
show_featured_image_in_detail == 1) checked="checked" @endif>
@include('admin.media.set_file', ['file'=>$obj->featured_image, 'title'=>'Featured Image', 'popup_type'=>'single_image', 'type'=>'Image', 'holder_attr'=>'featured_image_id'])
@endfieldshow
Author Image
@include('admin.media.set_file', ['file'=>$obj->author_image, 'title'=>'Author Image', 'popup_type'=>'single_image', 'type'=>'Image', 'holder_attr'=>'author_image_id'])
@fieldshow(blogs-banner_image_id)
Banner Image
@include('admin.media.set_file', ['file'=>$obj->banner_image, 'title'=>'Banner Image', 'popup_type'=>'single_image', 'type'=>'Image', 'holder_attr'=>'banner_image_id'])
@endfieldshow @fieldshow(blogs-og_image_id)
OG Image
@include('admin.media.set_file', ['file'=>$obj->og_image, 'title'=>'OG Image', 'popup_type'=>'single_image', 'type'=>'Image', 'holder_attr'=>'og_image_id'])
@endfieldshow
@include('admin._partials.footer')
@endsection @section('footer') @parent @endsection