@extends('cms.layouts.authorized') @section('headerCustom') @php $id = 0; if (!empty($model->getKey())) $id = $model->getKey(); if($typeEntity::ALLOW_MULTIPLE) { $title = 'new ' . $subtype; $formUrl = url('/admin/cms/details/'.$type.'/'.$subtype.'/'.$id); $cancelUrl = url('/admin/cms/'.$type.'/'.$subtype); } else { $id = ''; if (!empty($model::CMS_NAME)) $title = $model::CMS_NAME; else $title = $model->name; $formUrl = url('/admin/cms/details/'.$type.'/'.$subtype); $cancelUrl = url('/admin/cms/'.$type); } $language = ''; @endphp @endsection @section('button') @include('cms.form.button') @endsection @section('content') @include('cms.form.errorbox')
@if(count(\Illuminate\Support\Facades\Config::get('cms.LANGUAGE'))>1) @foreach(\Illuminate\Support\Facades\Config::get('cms.LANGUAGE') as $index=>$language) @endforeach @else @include('cms.form.main') @endif
@endsection @if(View::exists('admin.'.strtolower($subtype).'.detailsCustom')) @include('admin.'.strtolower($subtype).'.detailsCustom') @endif