CMS Info for Header, dyn. Tage, API
This commit is contained in:
parent
7294ccc1d0
commit
bed91c4f4a
49 changed files with 3476 additions and 1562 deletions
|
|
@ -35,11 +35,11 @@
|
|||
<div class="card-body">
|
||||
<h4>Lokale Öffnungszeiten</h4>
|
||||
<p>Die Öffnungszeiten können eine Woche im Voraus geplant werden und wird live im Frontend angezeigt.</p>
|
||||
@foreach($days as $wday => $day_name)
|
||||
@foreach($days as $wday => $values)
|
||||
@php($available = \App\Models\CMSInfoAvailable::getContentBySlug('local', $wday))
|
||||
<div class="form-row">
|
||||
{{ Form::hidden('info_availables[local]['.$wday.'][wday]', $wday) }}
|
||||
<div class="col-sm-2 col-6 py-2"><strong>{!! $day_name !!}</strong></div>
|
||||
<div class="col-sm-2 col-6 py-2"><strong>{{ $values['name'] }} <span class="text-muted">({{ $values['date'] }})</span></strong></div>
|
||||
<div class="col-sm-3 col-6 py-2">
|
||||
<label class="switcher">
|
||||
{{ Form::hidden('info_availables[local]['.$wday.'][active]', 0) }}
|
||||
|
|
@ -66,17 +66,61 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card mb-4">
|
||||
<div class="card-body">
|
||||
<button type="submit" name="action" value="add_special_available_local" class="btn btn-primary btn-sm float-right mb-2"><i class="ion ion-ios-add-circle"></i> Eintrag</button>
|
||||
|
||||
<h4>Spezielle Öffnungszeiten Lokal</h4>
|
||||
<p>Überschreibt bei dem speziellen Datum Erreichbarkeit und fügt das Datum den Öffnungszeiten hinzu.</p>
|
||||
|
||||
@foreach($specials_local as $special_local)
|
||||
<div class="form-row">
|
||||
{{ Form::hidden('special_availables['.$special_local->id.'][wday]', $special_local->wday) }}
|
||||
<div class="col-sm-2 col-6">
|
||||
{{ Form::text('special_availables['.$special_local->id.'][date]', $special_local->date, array('placeholder'=>__('Datum'), 'class'=>'form-control datepicker-base')) }}
|
||||
</div>
|
||||
<div class="col-sm-2 col-6 py-2"><strong>{!! \App\Services\HTMLHelper::getDeDay($special_local->wday) !!}</strong></div>
|
||||
|
||||
<div class="col-sm-2 col-12 py-2">
|
||||
<label class="switcher">
|
||||
{{ Form::hidden('special_availables['.$special_local->id.'][active]', 0) }}
|
||||
{{ Form::checkbox('special_availables['.$special_local->id.'][active]', 1, $special_local->active, array('class'=>'switcher-input')) }}
|
||||
<span class="switcher-indicator">
|
||||
<span class="switcher-yes"></span>
|
||||
<span class="switcher-no"></span>
|
||||
</span>
|
||||
<span class="switcher-label"><span class="switcher-label-yes">geöffnet</span> <span class="switcher-label-no">geschlossen</span></span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-group col-sm-2 col-6">
|
||||
<select class="selectpicker" data-style="btn-default" name="special_availables[{{$special_local->id}}][from]" data-live-search="true">
|
||||
{!! \App\Services\HTMLHelper::getTimeInSteps($special_local->from) !!}
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group col-sm-2 col-6">
|
||||
<select class="selectpicker" data-style="btn-default" name="special_availables[{{$special_local->id}}][to]" data-live-search="true">
|
||||
{!! \App\Services\HTMLHelper::getTimeInSteps($special_local->to) !!}
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-sm-1 col-2 p-1">
|
||||
<a href="{{route('cms_content_infos_delete', ['special_available', $special_local->id])}}" class="btn btn-danger btn-sm" onclick="return confirm('Wirklich löschen?');"><i class="far fa-trash-alt"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="card mb-4">
|
||||
<div class="card-body">
|
||||
<h4>Telefon Erreichbarkeit</h4>
|
||||
<p>Die Erreichbarkeit per Telefon kann eine Woche im Voraus geplant werden und wird live im Frontend angezeigt.</p>
|
||||
@foreach($days as $wday => $day_name)
|
||||
@foreach($days as $wday => $values)
|
||||
@php($available = \App\Models\CMSInfoAvailable::getContentBySlug('phone', $wday))
|
||||
<div class="form-row">
|
||||
{{ Form::hidden('info_availables[phone]['.$wday.'][active]', 0) }}
|
||||
{{ Form::hidden('info_availables[phone]['.$wday.'][wday]', $wday) }}
|
||||
<div class="col-sm-2 col-6 py-2"><strong>{!! $day_name !!}</strong></div>
|
||||
<div class="col-sm-2 col-6 py-2"><strong>{{ $values['name'] }} <span class="text-muted">({{ $values['date'] }})</span></strong></div>
|
||||
<div class="col-sm-3 col-6 py-2">
|
||||
<label class="switcher">
|
||||
{{ Form::hidden('info_availables[phone]['.$wday.'][active]', 0) }}
|
||||
|
|
@ -103,6 +147,51 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card mb-4">
|
||||
<div class="card-body">
|
||||
<button type="submit" name="action" value="add_special_available_phone" class="btn btn-primary btn-sm float-right mb-2"><i class="ion ion-ios-add-circle"></i> Eintrag</button>
|
||||
|
||||
<h4>Spezielle Erreichbarkeit Telefon</h4>
|
||||
<p>Überschreibt bei dem speziellen Datum Erreichbarkeit und fügt das Datum der Erreichbarkeit hinzu.</p>
|
||||
|
||||
@foreach($specials_phone as $special_phone)
|
||||
<div class="form-row">
|
||||
{{ Form::hidden('special_availables['.$special_phone->id.'][wday]', $special_phone->wday) }}
|
||||
<div class="col-sm-2 col-6">
|
||||
{{ Form::text('special_availables['.$special_phone->id.'][date]', $special_phone->date, array('placeholder'=>__('Datum'), 'class'=>'form-control datepicker-base')) }}
|
||||
</div>
|
||||
<div class="col-sm-2 col-6 py-2"><strong>{!! \App\Services\HTMLHelper::getDeDay($special_phone->wday) !!}</strong></div>
|
||||
|
||||
<div class="col-sm-2 col-12 py-2">
|
||||
<label class="switcher">
|
||||
{{ Form::hidden('special_availables['.$special_phone->id.'][active]', 0) }}
|
||||
{{ Form::checkbox('special_availables['.$special_phone->id.'][active]', 1, $special_phone->active, array('class'=>'switcher-input')) }}
|
||||
<span class="switcher-indicator">
|
||||
<span class="switcher-yes"></span>
|
||||
<span class="switcher-no"></span>
|
||||
</span>
|
||||
<span class="switcher-label"><span class="switcher-label-yes">geöffnet</span> <span class="switcher-label-no">geschlossen</span></span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-group col-sm-2 col-6">
|
||||
<select class="selectpicker" data-style="btn-default" name="special_availables[{{$special_phone->id}}][from]" data-live-search="true">
|
||||
{!! \App\Services\HTMLHelper::getTimeInSteps($special_phone->from) !!}
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group col-sm-2 col-6">
|
||||
<select class="selectpicker" data-style="btn-default" name="special_availables[{{$special_phone->id}}][to]" data-live-search="true">
|
||||
{!! \App\Services\HTMLHelper::getTimeInSteps($special_phone->to) !!}
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-sm-1 col-2 p-1">
|
||||
<a href="{{route('cms_content_infos_delete', ['special_available', $special_phone->id])}}" class="btn btn-danger btn-sm" onclick="return confirm('Wirklich löschen?');"><i class="far fa-trash-alt"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card mb-4">
|
||||
<div class="card-body">
|
||||
<button type="submit" name="action" value="add_holiday" class="btn btn-primary btn-sm float-right mb-2"><i class="ion ion-ios-add-circle"></i> Eintrag</button>
|
||||
|
|
@ -175,9 +264,9 @@
|
|||
</div>
|
||||
<div class="form-row">
|
||||
<div class="form-group col-sm-12">
|
||||
<label class="form-label" for="office_appointment">{{ __('Termin') }}*</label>
|
||||
{{ Form::text('infos[office-appointment][val]', \App\Models\CMSInfo::getContentBySlug('office-appointment'), array('placeholder'=>__('Text zur Terminvereinbarung'), 'class'=>'form-control', 'id'=>'office_appointment')) }}
|
||||
{{ Form::hidden('infos[office-appointment][type]', 'text') }}
|
||||
<label class="form-label" for="office_appointment">{{ __('Termin Text') }}*</label>
|
||||
{{ 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') }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue