175 lines
No EOL
9.7 KiB
PHP
175 lines
No EOL
9.7 KiB
PHP
@extends('layouts.layout-2')
|
|
|
|
@section('content')
|
|
|
|
{!! Form::open(['url' => route('iq_travel_item_detail', [$id]), 'class' => 'form-horizontal']) !!}
|
|
|
|
<h4 class="font-weight-bold py-3 mb-1">
|
|
Reisebaustein
|
|
<div class="float-right">
|
|
<button type="submit" name="action" value="saveAll" class="btn btn-submit btn-sm">{{ __('save changes') }}</button>
|
|
<a href="{{route('iq_travel_items')}}" class="btn btn-default btn-sm">{{ __('back') }}</a>
|
|
</div>
|
|
</h4>
|
|
|
|
<div class="card mb-2">
|
|
<div class="card-body">
|
|
<h4>Allgemein</h4>
|
|
<div class="form-row">
|
|
<div class="form-group col-sm-4">
|
|
<label class="form-label" for="name">{{ __('Name') }} *</label>
|
|
{{ Form::text('name', $model->name, array('placeholder'=>__('Name'), 'class'=>'form-control', 'id'=>'name', 'required'=>true)) }}
|
|
</div>
|
|
<div class="form-group col-sm-4">
|
|
<label for="draft_type_id" class="form-label">Typ</label>
|
|
{{ Form::select('draft_type_id', \App\Services\Model::getDraftTypeArray(true) , $model->draft_type_id, array('class'=>'custom-select', 'id'=>'draft_type_id')) }}
|
|
</div>
|
|
<div class="form-group col-sm-4">
|
|
<label for="travel_country_id" class="form-label">Reiseland</label>
|
|
{{ Form::select('travel_country_id', \App\Services\Model::getTravelCountryArray(true) , $model->travel_country_id, array('class'=>'custom-select', 'id'=>'travel_country_id')) }}
|
|
</div>
|
|
</div>
|
|
<div class="form-row">
|
|
<div class="form-group col-sm-4">
|
|
<label class="form-label" for="min_persons">min. Personen</span></label>
|
|
<select class="custom-select" data-style="btn-light" name="min_persons" id="min_persons">
|
|
<option value="">min. Personen</option>
|
|
{!! HTMLHelper::getRangeOptions($model->min_persons, 10, ' min.P.') !!}
|
|
</select>
|
|
</div>
|
|
<div class="form-group col-sm-4">
|
|
<label class="form-label" for="price_adult">Preis p.P. Erwachsender</span></label>
|
|
<div class="input-group">
|
|
<div class="input-group-prepend">
|
|
<span class="input-group-text">€</span>
|
|
</div>
|
|
{{ Form::text('price_adult', $model->price_adult, array('placeholder'=>__('Preis in €'), 'class'=>'form-control', 'id'=>'price_adult',)) }}
|
|
</div>
|
|
</div>
|
|
<div class="form-group col-sm-4">
|
|
<label class="form-label" for="price_children">Preis p.P. Kinder</span></label>
|
|
<div class="input-group">
|
|
<div class="input-group-prepend">
|
|
<span class="input-group-text">€</span>
|
|
</div>
|
|
{{ Form::text('price_children', $model->price_children, array('placeholder'=>__('Preis in €'), 'class'=>'form-control', 'id'=>'price_children',)) }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="form-row">
|
|
<div class="form-group col-sm-4">
|
|
<label class="form-label" for="price_adult">Dauer in Tagen</span></label>
|
|
<select class="selectpicker" data-style="btn-light" name="days_duration" id="days_duration">
|
|
<option value="">Dauer in Tagen</option>
|
|
{!! HTMLHelper::getRangeOptions($model->days_duration, 60, ' Tag:e') !!}
|
|
</select>
|
|
</div>
|
|
<div class="form-group col-sm-4">
|
|
<label class="form-label" for="price_adult">Starttag</span></label>
|
|
<select class="selectpicker" data-style="btn-light" name="days_start" id="days_start">
|
|
<option value="">Starttag</option>
|
|
{!! HTMLHelper::getRangeOptions($model->days_start, 60, ' Tag:e') !!}
|
|
</select>
|
|
</div>
|
|
<div class="form-group col-sm-4 pt-4">
|
|
<label class="switcher switcher-on-off">
|
|
{{ Form::hidden('active', 0) }}
|
|
{{ Form::checkbox('active', 1, $model->active, array('class'=>'switcher-input')) }}
|
|
<span class="switcher-indicator">
|
|
<span class="switcher-yes"></span>
|
|
<span class="switcher-no"></span>
|
|
</span>
|
|
<span class="switcher-label">sichtbar</span>
|
|
</label>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-row">
|
|
<div class="col-sm-12">
|
|
<hr>
|
|
</div>
|
|
<div class="form-group col-sm-12 col-md-6">
|
|
<label class="form-label" for="description">Beschreibung</span></label>
|
|
{{ Form::textarea('description', $model->description, array('class'=>'form-control autoExpand', 'rows'=>2)) }}
|
|
</div>
|
|
|
|
<div class="form-group col-sm-12 col-md-6">
|
|
<label class="form-label" for="highlights">Highlights</span></label>
|
|
{{ Form::textarea('highlights', $model->highlights, array('class'=>'form-control autoExpand', 'rows'=>2)) }}
|
|
</div>
|
|
<div class="col-sm-12">
|
|
<hr>
|
|
</div>
|
|
</div>
|
|
|
|
<h4>Reiseorte <span class="text-muted">für diesen Baustein</span></h4>
|
|
|
|
@if($model->id)
|
|
|
|
<div class="table-responsive" id="booking_files_table">
|
|
<table class="table table-striped table-sm">
|
|
<thead>
|
|
<tr>
|
|
<th style="width: 2%;"> </th>
|
|
<th style="width: 6%;">{{__('POS')}}</th>
|
|
<th>Name</th>
|
|
<th>Beschreibung</th>
|
|
<th>Land</th>
|
|
<th> </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@if($model->i_q_travel_item_places)
|
|
@foreach($model->i_q_travel_item_places as $i_q_travel_item_place)
|
|
<tr>
|
|
<td class="not">
|
|
<button type="button" class="btn icon-btn btn-sm btn-primary" data-toggle="modal" data-target="#modals-load-content"
|
|
data-id="{{$i_q_travel_item_place->id}}"
|
|
data-iq_travel_item_id="{{$model->id}}"
|
|
data-model="IQTravelItemPlace"
|
|
data-action="modal-iq_travel_item-place"
|
|
data-back="{{route('iq_travel_item_detail', [$model->id])}}"
|
|
data-url="{{ route('iq_travel_item_detail', [$model->id]) }}"
|
|
data-route="{{ route('modal_load') }}"><span class="fa fa-edit"></span></button>
|
|
</td>
|
|
<td>{{ $i_q_travel_item_place->pos }}</td>
|
|
<td>{{ $i_q_travel_item_place->travel_place->name }}</td>
|
|
<td>{{ $i_q_travel_item_place->travel_place->description }}</td>
|
|
<td>@if($i_q_travel_item_place->travel_place->travel_country){{ $i_q_travel_item_place->travel_place->travel_country->name }} @endif</td>
|
|
<td>
|
|
<a class="ml-2 btn btn-xs btn-danger" href="{{ route('iq_travel_item_delete', [$i_q_travel_item_place->id, 'i_q_travel_item_place']) }}" onclick="return confirm('{{__('Wirklich löschen?')}}');"><i class="fa fa-trash-alt"></i></a>
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
@endif
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="text-right d-block w-100">
|
|
<button type="button" class="btn btn-sm btn-primary" data-toggle="modal" data-target="#modals-load-content"
|
|
data-id="new"
|
|
data-iq_travel_item_id="{{$model->id}}"
|
|
data-model="IQTravelItemPlace"
|
|
data-action="modal-iq_travel_item-place"
|
|
data-back="{{route('iq_travel_item_detail', [$model->id])}}"
|
|
data-url="{{ route('iq_travel_item_detail', [$model->id]) }}"
|
|
data-route="{{ route('modal_load') }}"><i class="ion ion-md-add-circle"></i> Reiseorte hinzufügen</button>
|
|
</div>
|
|
@else
|
|
<p><i>Der Baustein muss erst mit einem Name gespeichert werden.</i></p>
|
|
@endif
|
|
<div class="float-left small">Reiseorte bearbeiten / anlegen: <a href="{{ route('admin_settings_travel_places') }}">Einstellungen -> Reiseorte</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="text-left mt-3">
|
|
<button type="submit" name="action" value="saveAll" class="btn btn-submit">{{ __('save changes') }}</button>
|
|
<a href="{{route('iq_travel_items')}}" class="btn btn-default">{{ __('back') }}</a> </div>
|
|
{!! Form::close() !!}
|
|
|
|
|
|
|
|
|
|
@endsection |