205 lines
No EOL
11 KiB
PHP
Executable file
205 lines
No EOL
11 KiB
PHP
Executable file
@extends('layouts.layout-2')
|
|
|
|
@section('content')
|
|
|
|
{!! Form::open(['url' => route('cms_content_country_store', [$id]), 'class' => 'form-horizontal']) !!}
|
|
|
|
<h4 class="font-weight-bold py-3 mb-1">
|
|
Reiseland Inhalte {{ $model->name }}
|
|
<div class="float-right">
|
|
<a href="{{route('cms_content_country')}}" class="btn btn-default btn-sm">{{ __('back') }}</a>
|
|
</div>
|
|
</h4>
|
|
<div class="nav-tabs-top mb-4">
|
|
<ul class="nav nav-tabs">
|
|
<li class="nav-item">
|
|
<a class="nav-link @if($step == false) active show @endif" data-toggle="tab" href="#navs-site">Seite</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link @if($step == 'form') active show @endif" data-toggle="tab" href="#navs-form">Formular</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link @if($step == 'contact') active show @endif" data-toggle="tab" href="#navs-contact">Kontaktdaten</a>
|
|
</li>
|
|
|
|
<li class="nav-item">
|
|
<a class="nav-link @if($step == 'travel') active show @endif" data-toggle="tab" href="#navs-travel">Einreisebestimmungen</a>
|
|
</li>
|
|
</ul>
|
|
|
|
|
|
<div class="tab-content">
|
|
<div class="tab-pane fade @if($step == false) active show @endif" id="navs-site">
|
|
<div class="card-body">
|
|
<br>
|
|
<h4>Inhalte für Seite</h4>
|
|
<div class="form-row">
|
|
<div class="form-group col-sm-12">
|
|
<label class="form-label" for="html_information">{{ __('Landinformationen (HTML)') }} </label>
|
|
{{ Form::textarea('html_information', $model->html_information, ['class' => 'form-control summernote']) }}
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="form-row">
|
|
<div class="col-12 py-2">
|
|
<label class="switcher switcher-on-off">
|
|
{{ Form::hidden('active_frontend', 0) }}
|
|
{{ Form::checkbox('active_frontend', 1, $model->active_frontend, array('class'=>'switcher-input')) }}
|
|
<span class="switcher-indicator">
|
|
<span class="switcher-yes"></span>
|
|
<span class="switcher-no"></span>
|
|
</span>
|
|
<span class="switcher-label">Sichtbar im Frontend (Suche)</span>
|
|
</label>
|
|
</div>
|
|
<div class="col-12 py-2">
|
|
<label class="switcher switcher-on-off">
|
|
{{ Form::hidden('active_backend', 0) }}
|
|
{{ Form::checkbox('active_backend', 1, $model->active_backend, array('class'=>'switcher-input')) }}
|
|
<span class="switcher-indicator">
|
|
<span class="switcher-yes"></span>
|
|
<span class="switcher-no"></span>
|
|
</span>
|
|
<span class="switcher-label">Sichtbar im Backend CRM</span>
|
|
</label>
|
|
</div>
|
|
<div class="col-12 py-2">
|
|
<label class="switcher switcher-on-off">
|
|
{{ Form::hidden('is_customer_country', 0) }}
|
|
{{ Form::checkbox('is_customer_country', 1, $model->is_customer_country, array('class'=>'switcher-input')) }}
|
|
<span class="switcher-indicator">
|
|
<span class="switcher-yes"></span>
|
|
<span class="switcher-no"></span>
|
|
</span>
|
|
<span class="switcher-label">Sichtbar bei Kunden</span>
|
|
</label>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<button type="submit" name="action" value="" class="btn btn-submit">{{ __('save changes') }}</button>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div class="tab-pane fade @if($step == 'form') active show @endif" id="navs-form">
|
|
<div class="card-body">
|
|
<br>
|
|
<h4>Inhalte für Formular</h4>
|
|
<div class="form-row">
|
|
<div class="form-group col-sm-12">
|
|
<label class="form-label" for="text_before">{{ __('Formular Text vor der Reise (max. 255 Zeichen)') }} </label>
|
|
{{ Form::text('text_before', $model->text_before, ['class' => 'form-control', 'maxlength'=>'255']) }}
|
|
</div>
|
|
<div class="form-group col-sm-12">
|
|
<label class="form-label" for="html_information">{{ __('Formular Text nach der Reise ( max. 255 Zeichen)') }} </label>
|
|
{{ Form::text('text_after', $model->text_after, ['class' => 'form-control', 'maxlength'=>'255']) }}
|
|
</div>
|
|
</div>
|
|
<button type="submit" name="action" value="form" class="btn btn-submit">{{ __('save changes') }}</button>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div class="tab-pane fade @if($step == 'contact') active show @endif" id="navs-contact">
|
|
<div class="card-body">
|
|
<div class="form-row">
|
|
<div class="form-group col-sm-12">
|
|
<label class="form-label" for="contact_lands">Kontaktdaten aus folgenden Ländern nehmen</label>
|
|
<select class="selectpicker" data-style="btn-default" name="contact_lands[]" multiple>
|
|
{!! HTMLHelper::getTravelCountriesOptions($model->contact_lands) !!}
|
|
</select>
|
|
<em>Land/Länder müssen angeben sein, die Kontaktdaten des Landes (Reiselandes) werden nacheinander im PDF (RA, RB, Voucher) eingefügt.</em>
|
|
</div>
|
|
</div>
|
|
<hr>
|
|
|
|
<br>
|
|
<h4>Kontaktdaten</h4>
|
|
|
|
<div class="form-row">
|
|
<div class="form-group col-sm-12">
|
|
<label class="form-label" for="contact_headline">Überschrift</label>
|
|
{{ Form::text('contact_headline', $model->contact_headline, ['class' => 'form-control', 'maxlength'=>'255']) }}
|
|
</div>
|
|
|
|
<div class="form-group col-sm-6">
|
|
<label class="form-label" for="contact_text_1">Kontaktfeld 1 </label>
|
|
{{ Form::textarea('contact_text_1', $model->contact_text_1, ['class' => 'form-control', 'rows'=>4]) }}
|
|
</div>
|
|
<div class="form-group col-sm-6">
|
|
<label class="form-label" for="contact_text_2">Kontaktfeld 2 </label>
|
|
{{ Form::textarea('contact_text_2', $model->contact_text_2, ['class' => 'form-control', 'rows'=>4]) }}
|
|
</div>
|
|
<div class="form-group col-sm-6">
|
|
<label class="form-label" for="contact_text_3">Kontaktfeld 3 </label>
|
|
{{ Form::textarea('contact_text_3', $model->contact_text_3, ['class' => 'form-control', 'rows'=>4]) }}
|
|
</div>
|
|
<div class="form-group col-sm-6">
|
|
<label class="form-label" for="contact_text_4">Kontaktfeld 4</label>
|
|
{{ Form::textarea('contact_text_4', $model->contact_text_4, ['class' => 'form-control', 'rows'=>4]) }}
|
|
</div>
|
|
</div>
|
|
<hr>
|
|
<h4>Rückfragen</h4>
|
|
<p>Übergreifende Texte für jedes Land sind unter: <a href="{{route('cms_content_all')}}">Inhalte Allgemein</a><br>
|
|
- PDF Footer Hinweise Rückfragen<br>
|
|
- PDF Footer Hinweise Reisebedingungen<br>
|
|
- PDF Absender<br>
|
|
</p>
|
|
<div class="form-row">
|
|
<div class="form-group col-sm-12">
|
|
<label class="form-label" for="contact_text_4">Kontakt Footer</label>
|
|
{{ Form::textarea('contact_footer', $model->contact_footer, ['class' => 'form-control', 'rows'=>4]) }}
|
|
</div>
|
|
</div>
|
|
<button type="submit" name="action" value="contact" class="btn btn-submit">{{ __('save changes') }}</button>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div class="tab-pane fade @if($step == 'travel') active show @endif" id="navs-travel">
|
|
<div class="card-body">
|
|
<br>
|
|
<h4>Einreisebestimmungen</h4>
|
|
@foreach($travel_nationalities as $travel_nationality)
|
|
<div class="form-row">
|
|
<div class="form-group col-sm-12">
|
|
<label class="form-label" for="travel_nationality_requirement_{{$travel_nationality->id}}">{{ $travel_nationality->name }}{{ __('(HTML)') }} </label>
|
|
{{ Form::textarea('travel_nationality_requirement['.$travel_nationality->id.']', $model->getNationalityRequirement($travel_nationality->id), ['class' => 'form-control summernote-small', 'id'=>'travel_nationality_requirement_'.$travel_nationality->id]) }}
|
|
</div>
|
|
</div>
|
|
|
|
@endforeach
|
|
<button type="submit" name="action" value="travel" class="btn btn-submit">{{ __('save changes') }}</button>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div class="text-left mt-3">
|
|
<a href="{{route('cms_content_country')}}" class="btn btn-default">{{ __('back') }}</a>
|
|
</div>
|
|
|
|
{!! Form::close() !!}
|
|
|
|
<script>
|
|
$( document ).ready(function() {
|
|
$('input[name="active_frontend"]').on('change', function () {
|
|
if($(this).prop( "checked")){
|
|
$('#show_active_frontend').show("slow");
|
|
}else{
|
|
$('#show_active_frontend').hide("slow");
|
|
}
|
|
});
|
|
});
|
|
</script>
|
|
|
|
|
|
|
|
@endsection |