@lang('default.title')
{!! clean($errors->first('title', '
:message
')) !!}
@lang('default.content')
{!! old('content',isset($blogpost->content) ? $blogpost->content : '') !!}
{!! clean($errors->first('content', '
:message
')) !!}
@lang('default.published-on')
{!! clean($errors->first('publish_date', '
:message
')) !!}
@lang('default.categories')
@if($formMode === 'edit')
@foreach(\App\BlogCategory::get() as $category)
id,old('categories'))) || (null === old('categories') && $blogpost->blogCategories()->where('blog_category_id',$category->id)->first() )) selected @endif value="{{ $category->id }}">{{ $category->name }}
@endforeach
@else
@foreach(\App\BlogCategory::get() as $category)
id,old('categories'))) selected @endif value="{{ $category->id }}">{{ $category->name }}
@endforeach
@endif
@lang('default.enabled')
@foreach (json_decode('{"1":"Yes","0":"No"}', true) as $optionKey => $optionValue)
enabled)) && old('blogpost',@$blogpost->enabled) == $optionKey) ? 'selected' : ''}}>{{ $optionValue }}
@endforeach
{!! clean($errors->first('enabled', '
:message
')) !!}
@if($formMode=='edit')@lang('default.change') @endif @lang('default.cover-image')
{!! clean($errors->first('cover_photo', '
:message
')) !!}
@if($formMode==='edit' && !empty($blogpost->cover_photo))
@lang('default.delete') @lang('default.cover-image')
@endif
@lang('default.meta-title')
{!! clean($errors->first('meta_title', '
:message
')) !!}
@lang('default.meta-description')
{{ old('meta_description',isset($blogpost->meta_description) ? $blogpost->meta_description : '') }}
{!! clean($errors->first('meta_description', '
:message
')) !!}