@extends('layouts.app') @section('template_title') Theme {{ $theme->name }} @endsection @section('template_fastload_css') @endsection @php $themeActive = [ 'checked' => '', 'value' => 0, 'true' => '', 'false' => 'checked' ]; if($theme->status == 1) { $themeActive = [ 'checked' => 'checked', 'value' => 1, 'true' => 'checked', 'false' => '' ]; } @endphp @section('content')
{{ trans('themes.editTitle') }}
{{ $theme->name }}
Back
to Theme
Back to
Themes
{!! Form::model($theme, array('action' => array('ThemesManagementController@update', $theme->id), 'method' => 'PUT')) !!} {!! csrf_field() !!}
{!! Form::label('status', trans('themes.statusLabel'), array('class' => 'col-md-3 control-label')); !!}
{{ trans('themes.statusEnabled') }}
{{ trans('themes.statusDisabled') }}
@if ($errors->has('status'))
{{ $errors->first('status') }}
@endif
{!! Form::label('name', trans('themes.nameLabel') , array('class' => 'col-md-3 control-label')); !!}
{!! Form::text('name', old('name'), array('id' => 'name', 'class' => 'form-control', 'placeholder' => trans('themes.namePlaceholder'))) !!}
@if ($errors->has('name'))
{{ $errors->first('name') }}
@endif
{!! Form::label('link', trans('themes.linkLabel') , array('class' => 'col-md-3 control-label')); !!}
{!! Form::text('link', old('link'), array('id' => 'link', 'class' => 'form-control', 'placeholder' => trans('themes.linkPlaceholder'))) !!}
@if ($errors->has('link'))
{{ $errors->first('link') }}
@endif
{!! Form::label('notes', trans('themes.notesLabel') , array('class' => 'col-md-3 control-label')); !!}
{!! Form::textarea('notes', old('notes'), array('id' => 'notes', 'class' => 'form-control', 'placeholder' => trans('themes.notesPlaceholder'))) !!}
@if ($errors->has('notes'))
{{ $errors->first('notes') }}
@endif
{!! Form::close() !!}
@include('modals.modal-save') @include('modals.modal-delete') @endsection @section('footer_scripts') @include('scripts.delete-modal-script') @include('scripts.save-modal-script') @include('scripts.check-changed') @include('scripts.toggleStatus') @endsection