@extends('layouts.layout-2') @section('content') {!! Form::open(['url' => route('cms_content_infos'), 'class' => 'form-horizontal']) !!}

Inhalte Infos verwalten
 

Lokale Öffnungszeiten

Die Öffnungszeiten können eine Woche im Voraus geplant werden und wird live im Frontend angezeigt.

@foreach($days as $wday => $values) @php($available = \App\Models\CMSInfoAvailable::getContentBySlug('local', $wday))
{{ Form::hidden('info_availables[local]['.$wday.'][wday]', $wday) }}
{{ $values['name'] }} ({{ $values['date'] }})
@endforeach

Spezielle Öffnungszeiten Lokal

Überschreibt bei dem speziellen Datum Erreichbarkeit und fügt das Datum den Öffnungszeiten hinzu.

@foreach($specials_local as $special_local)
{{ Form::hidden('special_availables['.$special_local->id.'][wday]', $special_local->wday) }}
{{ Form::text('special_availables['.$special_local->id.'][date]', $special_local->date, array('placeholder'=>__('Datum'), 'class'=>'form-control datepicker-base')) }}
{!! \App\Services\HTMLHelper::getDeDay($special_local->wday) !!}

@endforeach

Telefon Erreichbarkeit

Die Erreichbarkeit per Telefon kann eine Woche im Voraus geplant werden und wird live im Frontend angezeigt.

@foreach($days as $wday => $values) @php($available = \App\Models\CMSInfoAvailable::getContentBySlug('phone', $wday))
{{ Form::hidden('info_availables[phone]['.$wday.'][wday]', $wday) }}
{{ $values['name'] }} ({{ $values['date'] }})
@endforeach

Spezielle Erreichbarkeit Telefon

Überschreibt bei dem speziellen Datum Erreichbarkeit und fügt das Datum der Erreichbarkeit hinzu.

@foreach($specials_phone as $special_phone)
{{ Form::hidden('special_availables['.$special_phone->id.'][wday]', $special_phone->wday) }}
{{ Form::text('special_availables['.$special_phone->id.'][date]', $special_phone->date, array('placeholder'=>__('Datum'), 'class'=>'form-control datepicker-base')) }}
{!! \App\Services\HTMLHelper::getDeDay($special_phone->wday) !!}

@endforeach

Geschlossen Tage (nicht erreichbar)

Überschreibt bei dem Datum von - bis die Erreichbarkeit, wenn lokal und/oder telefon aktiviert (rot) ist.

@foreach($cms_holidays as $cms_holiday)
{{ Form::text('info_holidays['.$cms_holiday->id.'][from]', $cms_holiday->from, array('placeholder'=>__('Datum von'), 'class'=>'form-control')) }}
bis
{{ Form::text('info_holidays['.$cms_holiday->id.'][to]', $cms_holiday->to, array('placeholder'=>__('Datum von'), 'class'=>'form-control')) }}

@endforeach

Kontaktinfos

{{ Form::hidden('infos[office-important-note-active][type]', 'bool') }} {{ Form::text('infos[office-important-note][val]', \App\Models\CMSInfo::getContentBySlug('office-important-note'), array('placeholder'=>__('Weihnachtsferien! Vom 23.12.2019 bis zum 28.12.2019 sind wir nur zu den genannten Zeiten telefonisch zu erreichen.'), 'class'=>'form-control', 'id'=>'office_important_note')) }} {{ Form::hidden('infos[office-important-note][type]', 'text') }}
{{ Form::textarea('infos[office-appointment][val]', \App\Models\CMSInfo::getContentBySlug('office-appointment'), array('placeholder'=>__('Text zur Terminvereinbarung'), 'class'=>'form-control', 'id'=>'office_appointment', 'rows'=>4)) }} {{ Form::hidden('infos[office-appointment][type]', 'full_text') }}
{{ Form::text('infos[office-phone][val]', \App\Models\CMSInfo::getContentBySlug('office-phone'), array('placeholder'=>__('Telefonnummer'), 'class'=>'form-control', 'id'=>'office_phone', 'required'=>true)) }} {{ Form::hidden('infos[office-phone][type]', 'text') }}
{{ Form::email('infos[office-email][val]', \App\Models\CMSInfo::getContentBySlug('office-email'), array('placeholder'=>__('E-Mail'), 'class'=>'form-control', 'id'=>'office_email', 'required'=>true)) }} {{ Form::hidden('infos[office-email][type]', 'text') }}
 
{!! Form::close() !!} @endsection