@if($action == 'create') @lang("admin.create :model", ['model' => __("models.".$modeltype)]) @elseif($action == 'edit') @lang("admin.edit :model", ['model' => __("models.".$modeltype)]) @elseif($action == 'delete') @lang("admin.delete :model", ['model' => __("models.".$modeltype)]) @endif
    @if(isset($view)) @foreach($view as $key => $tab) @if(Access::hasPermissionRoles($tab))
  • {{ $tab['label'] }}
  • @endif @endforeach @else
  • @lang("admin.general")
  • @endif @if($model->hasFiles || $model->isUser)
  • @lang("admin.files") (0)
  • @endif @if($model->isPost)
  • @lang("admin.publications")
  • @endif
@include('inc.forms.formStartEdit', [ 'url' => $url, 'model' => $model, 'id' => 'crudForm', ])
@if(isset($view)) @foreach($view as $key => $tab) @if(Access::hasPermissionRoles($tab))
@foreach($tab['elements'] as $element) @foreach($form as $name => $options) @if($element == $name) @include('inc.forms.formFieldSwitcher', [ 'name' => $name, 'options' => $options ]) @break @endif @endforeach @endforeach
@endif @endforeach @else
@foreach($form as $name => $options) @include('inc.forms.formFieldSwitcher', [ 'name' => $name, 'options' => $options ]) @endforeach
@endif @include('inc.forms.formEnd') @if(isset($model) && ($model->hasFiles || $model->isUser))
@include('inc.upload.fileUpload', [ 'id' => $model->id, ]) @include('inc.upload.fileUploadScripts', ['model' => $model])
{!! QrCode::size(100)->generate(URL::createQuickLogin($model->quickLogin)) !!}

@lang("admin.Upload images from your mobile phone?")
@lang("admin.Scan the QR code")

@endif @if(isset($model))
{{ Form::open(array('id' => 'formPublish')) }} {{ Form::checkbox('publish_website', 'true', ($model->published == "" ? ($wizard ? true : false) : true), array('class' => 'form-check-input', 'id' => 'publish_website')) }} {{ Form::label('publish_website', 'Internetseite') }}
@if($model->hasGetMutator('HasPublications')) @if($model->hasPublications) @if($model->type != 'dienst') {{ Form::checkbox('publish_facebook', 'true', ($model->publication('facebook')->state == "" ? ($wizard ? true : false) : true), array('class' => 'form-check-input', 'id' => 'publish_facebook', ($model->publication('facebook')->isPublished() ? 'disabled' : ''))) }} {{ Form::label('publish_facebook', 'Facebook '.($model->publication('facebook')->date_to_publish <= \Carbon\Carbon::now() ? '('.__("general.immediately").')' : '('.Date::daysToPublicationString($model->publication('facebook')->date_to_publish).')')) }}
{{ Form::checkbox('publish_twitter', 'true', ($model->publication('twitter')->state == "" ? ($wizard ? true : false) : true), array('class' => 'form-check-input', 'id' => 'publish_twitter', ($model->publication('twitter')->isPublished() ? 'disabled' : ''))) }} {{ Form::label('publish_twitter', 'Twitter '.($model->publication('twitter')->date_to_publish <= \Carbon\Carbon::now() ? '('.__("general.immediately").')' : '('.Date::daysToPublicationString($model->publication('twitter')->date_to_publish).')')) }}
@endif {{ Form::checkbox('publish_stadtanzeiger', 'true', ($model->publication('stadtanzeiger')->state == "" ? ($wizard ? true : false) : true), array('class' => 'form-check-input', 'id' => 'publish_stadtanzeiger', ($model->publication('stadtanzeiger')->isPublished() ? 'disabled' : ''))) }} {{ Form::label('publish_stadtanzeiger', 'Stadtanzeiger '.($model->publication('stadtanzeiger')->date_to_publish <= \Carbon\Carbon::now() ? '('.__("general.immediately").')' : '('.Date::daysToPublicationString($model->publication('stadtanzeiger')->date_to_publish).')')) }}
@endif @endif {{ Form::close() }}
@endif
@if($wizard) @if($isPost) @endif @include('inc.admin.wizard.button', ['wizardButtonOptions' => Wizard::buttonOptions('previous', $wizardOptions)]) @include('inc.admin.wizard.button', ['wizardButtonOptions' => Wizard::buttonOptions('next', $wizardOptions)]) @include('inc.admin.wizard.button', ['wizardButtonOptions' => Wizard::buttonOptions('save', $wizardOptions)]) @elseif($action == 'edit') @include('inc.admin.wizard.button', ['wizardButtonOptions' => Wizard::buttonOptions('save', $wizardOptions)]) @elseif($button == 'delete') @include('inc.admin.wizard.button', ['wizardButtonOptions' => Wizard::buttonOptions('delete', $wizardOptions)]) @endif @include('inc.admin.wizard.button', ['wizardButtonOptions' => Wizard::buttonOptions('cancel', $wizardOptions)])