@extends('Backend::layout') @section('head') @stop @section('content') {{ HTML::widgetBox(['name' => $gallery ? trans('Gallery::common.edit_gallery') : trans('Gallery::common.add_gallery'), 'icon' => 'icon-picture']) }} {{ Former::populate($gallery) }} {{ Former::open() }} {{ Former::hidden('cms_gal_lang')->forceValue($language) }} {{ Former::text('cms_gal_name')->star() }} {{ Former::checkbox('cms_gal_active')->check() }} {{ Former::select('cms_gal_layout')->class('select2')->options($layouts)->star() }} {{ Former::text('cms_gal_thumbnail_width')->star() }} {{ Former::textarea('cms_gal_description')->class('tinymce') }} @if(! is_null($gallery) && ! is_null($gallery->cms_gal_smi_id)) {{ Former::checkbox('cms_gal_attach_side_menu')->check() }} @else {{ Former::checkbox('cms_gal_attach_side_menu') }} @endif
{{ Former::select('cms_gal_sm_id')->fromQuery($sitemaps, 'core_sm_name', 'core_sm_id') }} {{ Former::select('cms_gal_smi_id')->class('select2') }}
{{ Former::text('cms_gal_meta_keywords') }} {{ Former::text('cms_gal_meta_description') }} {{ Former::actions( Former::btn_primary_submit(trans('GlobalTranslations::common.save')), Former::default_reset(trans('GlobalTranslations::common.reset_changes'))->onclick('location.reload();')) }} {{ Former::close() }} {{ HTML::widgetBox(false) }} @stop