@extends('backend.layouts.app') @section('title', __('labels.backend.pages.title').' | '.app_name()) @push('after-styles') @endpush @section('content') {!! Form::open(['method' => 'POST', 'route' => ['admin.pages.store'], 'files' => true,]) !!}

@lang('labels.backend.pages.create')

{!! Form::label('title', trans('labels.backend.pages.fields.title'), ['class' => 'control-label']) !!} {!! Form::text('title', old('title'), ['class' => 'form-control', 'placeholder' => trans('labels.backend.pages.fields.title'), ]) !!}
{!! Form::label('slug',trans('labels.backend.pages.fields.slug'), ['class' => 'control-label']) !!} {!! Form::text('slug', old('slug'), ['class' => 'form-control', 'placeholder' => trans('labels.backend.lessons.slug_placeholder')]) !!}
{!! Form::label('page_image', trans('labels.backend.pages.fields.featured_image').' '.trans('labels.backend.pages.max_file_size'), ['class' => 'control-label']) !!} {!! Form::file('page_image', ['class' => 'form-control' , 'accept' => 'image/jpeg,image/gif,image/png']) !!} {!! Form::hidden('page_image_max_size', 8) !!} {!! Form::hidden('page_image_max_width', 4000) !!} {!! Form::hidden('page_image_max_height', 4000) !!}
{!! Form::label('content', trans('labels.backend.pages.fields.content'), ['class' => 'control-label']) !!} {!! Form::textarea('content', old('content'), ['class' => 'form-control editor', 'placeholder' => '']) !!}
{!! Form::label('meta_title',trans('labels.backend.pages.fields.meta_title'), ['class' => 'control-label']) !!} {!! Form::text('meta_title', old('meta_title'), ['class' => 'form-control', 'placeholder' => trans('labels.backend.pages.fields.meta_title')]) !!}
{!! Form::label('meta_description',trans('labels.backend.pages.fields.meta_description'), ['class' => 'control-label']) !!} {!! Form::textarea('meta_description', old('meta_description'), ['class' => 'form-control', 'placeholder' => trans('labels.backend.pages.fields.meta_description')]) !!}
{!! Form::label('meta_keywords',trans('labels.backend.pages.fields.meta_keywords'), ['class' => 'control-label']) !!} {!! Form::textarea('meta_keywords', old('meta_keywords'), ['class' => 'form-control', 'placeholder' => trans('labels.backend.pages.fields.meta_keywords')]) !!}
{!! Form::hidden('published', 0) !!} {!! Form::checkbox('published', 1, false, []) !!} {!! Form::label('published', trans('labels.backend.courses.fields.published'), ['class' => 'checkbox control-label font-weight-bold']) !!}
{!! Form::hidden('sidebar', 0) !!} {!! Form::checkbox('sidebar', 1, false, []) !!} {!! Form::label('sidebar', trans('labels.backend.courses.fields.sidebar'), ['class' => 'checkbox control-label font-weight-bold']) !!}
@endsection @push('after-scripts') @endpush