@extends('layouts.admin.master') @section('title', !empty($page) ? 'Edit CMS Page' : 'Add CMS Page') @section('content') @include('layouts.admin.flash.alert')

Manage CMS Pages Here you can add cms pages

{{ Breadcrumbs::render('common',['append' => [['label'=> $getController,'route'=> 'admin.pages.index'],['label' => !empty($page) ? 'Edit CMS Page' : 'Add CMS Page' ]]]) }}

{{ !empty($page) ? 'Edit CMS Page' : 'Add CMS Page' }}

Back
@if(isset($page)) {{ Form::model($page, ['route' => ['admin.pages.update', $page->id], 'method' => 'patch']) }} @else {{ Form::open(['route' => 'admin.pages.store']) }} @endif
{{ Form::text('title', old('title'), ['class' => 'form-control','placeholder' => 'Title']) }} @if($errors->has('title')) {{ $errors->first('title') }} @endif
{{ Form::text('sub_title', old('sub_title'), ['class' => 'form-control','placeholder' => 'Sub Title']) }} @if($errors->has('sub_title')) {{ $errors->first('sub_title') }} @endif
@if(empty($page)) {{ Form::text('slug', old('slug'), ['class' => 'form-control','placeholder' => 'Slug']) }} @endif @if(!empty($page)) {{ Form::text('slug', old('slug'), ['class' => 'form-control','placeholder' => 'Slug','readonly']) }} @endif @if($errors->has('slug')) {{ $errors->first('slug') }} @endif
{{ Form::textarea('short_description', old('short_description'), ['class' => 'form-control','placeholder' => 'Short Description', 'rows' => 4]) }}
{{ Form::text('meta_title', old('meta_title'), ['class' => 'form-control','placeholder' => 'Meta Title']) }} @if($errors->has('meta_title')) {{ $errors->first('meta_title') }} @endif
{{ Form::text('meta_keyword', old('meta_keyword'), ['class' => 'form-control','placeholder' => 'Meta Keyword']) }} @if($errors->has('meta_keyword')) {{ $errors->first('meta_keyword') }} @endif
{{ Form::textarea('meta_description', old('meta_description'), ['class' => 'form-control','placeholder' => 'Meta Description', 'rows' => 8]) }} @if($errors->has('meta_description')) {{ $errors->first('meta_description') }} @endif
{{ Form::textarea('description', old('description'), ['class' => 'form-control ckeditor','placeholder' => 'Description', 'rows' => 8]) }} @if($errors->has('description')) {{ $errors->first('description') }} @endif
{{ Form::close() }}
@stop