@extends('backend.layouts.app') @section('title', __('labels.backend.blogs.title').' | '.app_name()) @push('after-styles') @endpush @section('content') {!! Form::model($blog, ['method' => 'PUT', 'route' => ['admin.blogs.update', $blog->id], 'files' => true,]) !!}

@lang('labels.backend.blogs.edit')

{!! Form::label('title', trans('labels.backend.blogs.fields.title'), ['class' => 'control-label']) !!} {!! Form::text('title', old('title'), ['class' => 'form-control', 'placeholder' => trans('labels.backend.blogs.fields.title'), ]) !!}
{!! Form::label('category', trans('labels.backend.blogs.fields.category'), ['class' => 'control-label']) !!} {!! Form::select('category', $category, $blog->category_id, ['class' => 'form-control select2']) !!}
{!! Form::label('slug', trans('labels.backend.blogs.fields.slug'), ['class' => 'control-label']) !!} {!! Form::text('slug', old('slug'), ['class' => 'form-control', 'placeholder' => trans('labels.backend.blogs.slug_placeholder')]) !!}
@if ($blog->image)
{!! Form::label('featured_image', trans('labels.backend.blogs.fields.featured_image').' '.trans('labels.backend.blogs.max_file_size'), ['class' => 'control-label']) !!} {!! Form::file('featured_image', ['class' => 'form-control', 'accept' => 'image/jpeg,image/gif,image/png']) !!} {!! Form::hidden('featured_image_max_size', 8) !!} {!! Form::hidden('featured_image_max_width', 4000) !!} {!! Form::hidden('featured_image_max_height', 4000) !!}
@else
{!! Form::label('featured_image', trans('labels.backend.blogs.fields.featured_image').' '.trans('labels.backend.blogs.max_file_size'), ['class' => 'control-label']) !!} {!! Form::file('featured_image', ['class' => 'form-control']) !!} {!! Form::hidden('featured_image_max_size', 8) !!} {!! Form::hidden('featured_image_max_width', 4000) !!} {!! Form::hidden('featured_image_max_height', 4000) !!}
@endif
{!! Form::label('content', trans('labels.backend.blogs.fields.content'), ['class' => 'control-label']) !!} {!! Form::textarea('content', old('content'), ['class' => 'form-control editor', 'placeholder' => '']) !!}
{!! Form::text('tags', $tags, ['class' => 'form-control','data-role' => 'tagsinput', 'placeholder' => trans('labels.backend.blogs.fields.tags_placeholder'),'id'=>'tags']) !!}
{!! Form::label('meta_title',trans('labels.backend.blogs.fields.meta_title'), ['class' => 'control-label']) !!} {!! Form::text('meta_title', old('meta_title'), ['class' => 'form-control', 'placeholder' => trans('labels.backend.blogs.fields.meta_title')]) !!}
{!! Form::label('meta_description',trans('labels.backend.blogs.fields.meta_description'), ['class' => 'control-label']) !!} {!! Form::textarea('meta_description', old('meta_description'), ['class' => 'form-control', 'placeholder' => trans('labels.backend.blogs.fields.meta_description')]) !!}
{!! Form::label('meta_keywords',trans('labels.backend.blogs.fields.meta_keywords'), ['class' => 'control-label']) !!} {!! Form::textarea('meta_keywords', old('meta_keywords'), ['class' => 'form-control', 'placeholder' => trans('labels.backend.blogs.fields.meta_keywords')]) !!}
{{trans('strings.backend.general.app_back_to_list')}}
{!! Form::close() !!} @endsection @push('after-scripts') @endpush