@extends('layouts.app') @section('title', __('cms::lang.cms')) @section('content') @include('cms::layouts.nav') @if($post_type == 'page') @lang('cms::lang.add_page') @elseif($post_type == 'testimonial') @lang('cms::lang.add_testimonial') @elseif($post_type == 'blog') @lang('cms::lang.add_blog') @endif @php if (in_array($post_type, ['blog', 'page'])) { $title_label = __('cms::lang.title'); $content_label = __('cms::lang.content'); $feature_image_label = __('cms::lang.feature_image'); } elseif (in_array($post_type, ['testimonial'])) { $title_label = __('user.name'); $content_label = __('cms::lang.testimonial'); $feature_image_label = __('cms::lang.user_image'); } @endphp {!! Form::open(['action' => '\Modules\Cms\Http\Controllers\CmsPageController@store', 'id' => 'create_page_form', 'method' => 'post', 'files' => true]) !!} @component('components.widget', ['class' => 'box-solid']) {!! Form::label('title', $title_label . ':*' )!!} {!! Form::text('title', null, ['class' => 'form-control', 'required' ]) !!} {!! Form::label('content', $content_label . ':*' )!!} {!! Form::textarea('content', null, ['class' => 'form-control' ]) !!} @endcomponent @component('components.widget', ['class' => 'box-solid']) {!! Form::label('feature_image', $feature_image_label . ':') !!} {!! Form::file('feature_image', ['id' => 'feature_image', 'accept' => 'image/*']); !!} @lang('purchase.max_file_size', ['size' => (config('constants.document_size_limit') / 1000000)]) {!! Form::label('priority', __('cms::lang.priority') . ':' )!!} {!! Form::number('priority', null, ['class' => 'form-control' ]) !!} {!! Form::checkbox('is_enabled', 1, true, ['class' => 'input-icheck']); !!} @lang('cms::lang.is_enabled') @endcomponent @lang('messages.submit') {!! Form::close() !!} @stop @section('javascript') @endsection
@lang('purchase.max_file_size', ['size' => (config('constants.document_size_limit') / 1000000)])