@extends('layouts.app') @section('content')

Einstellungen

{{ Form::model($model, array('route' => 'settings-save', 'method' => 'POST')) }} @if(isset($user_id)) @include('inc.forms.inputHidden', [ 'name' => 'user_id', 'value' => Auth::user()->id ]) @endif @foreach($model as $m)
{{ Form::label($m->name, __('models.'.$m->name), array('class' => 'col-md-5 col-form-label')) }} @if($m->type == 'boolean')
{{ Form::hidden($m->name, 'false') }} {{ Form::checkbox($m->name, 'true', $m->valueFormatted, array('id' => $m->name, 'class' => 'form-check-input')) }}
@endif {{ $errors->first($m->name) }}
@endforeach
{{ Form::close() }}
@endsection @include('inc.admin.adminScript')