User Groups and Rights, Fewo
This commit is contained in:
parent
c0c2a1822c
commit
26ecb09cdc
22 changed files with 1316 additions and 787 deletions
|
|
@ -36,11 +36,16 @@
|
|||
|
||||
<div class="form-group col-sm-4">
|
||||
<label class="form-label" for="adults">{{ __('Erwachsene') }}</label>
|
||||
{{ Form::text('adults', $travel_user_booking_fewo->adults, array('placeholder'=>__('Erwachsene'), 'class'=>'form-control')) }}
|
||||
<select class="selectpicker" data-style="btn-light" name="adults" required>
|
||||
{!! HTMLHelper::getRangeOptions($travel_user_booking_fewo->adults, $max_adults, '', 0) !!}
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group col-sm-4">
|
||||
<label class="form-label" for="children">{{ __('Kinder') }}</label>
|
||||
{{ Form::text('children', $travel_user_booking_fewo->children, array('placeholder'=>__('Kinder'), 'class'=>'form-control')) }}
|
||||
<select class="selectpicker" data-style="btn-light" name="children" required>
|
||||
{!! HTMLHelper::getRangeOptions($travel_user_booking_fewo->children, $max_children, '', 0) !!}
|
||||
</select>
|
||||
|
||||
</div>
|
||||
<div class="form-group col-sm-4">
|
||||
<label class="form-label" for="persons">{{ __('Personen Gesamt') }}*</label>
|
||||
|
|
@ -58,29 +63,38 @@
|
|||
<label class="form-label" for="to_date">{{ __('Datum bis') }}*</label>
|
||||
{{ Form::text('to_date', $travel_user_booking_fewo->to_date, array('placeholder'=>__('Datum bis'), 'class'=>'form-control datepicker-base', 'required'=>true)) }}
|
||||
</div>
|
||||
<div class="form-group col-sm-12">
|
||||
<em>Änderungen werden nicht bei den Reservierungen geändert!</em>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
<div class="form-row">
|
||||
<div class="form-group col-sm-3">
|
||||
<label class="form-label" for="price_travel">{{ __('Preis Übernachtungen') }}*</label>
|
||||
{{ Form::text('price_travel', $travel_user_booking_fewo->price_travel, array('placeholder'=>__('Preis Übernachtungen'), 'class'=>'form-control')) }}
|
||||
@if(isset($travel_user_booking_fewo->daily_prices))
|
||||
@foreach($travel_user_booking_fewo->daily_prices as $s => $d)
|
||||
<div class="form-group col-sm-12">
|
||||
{{$s}} | {{$d['fromDay']}} - {{$d['toDay']}} | {{$d['numberDays']}} Tage x {{$d['perNight']}} € / pro Nacht | <strong>{{$d['price']}} € Gesamt</strong>
|
||||
</div>
|
||||
@endforeach
|
||||
@endif
|
||||
<div class="form-group col-sm-4 col-md-2">
|
||||
<label class="form-label" for="price_travel">{{ __('Mitpreis alle Tage') }}</label>
|
||||
{{ Form::text('price_travel', $travel_user_booking_fewo->price_travel, array('placeholder'=>__('Preis Übernachtungen'), 'class'=>'form-control input-auto-calc')) }}
|
||||
</div>
|
||||
<div class="form-group col-sm-3">
|
||||
<label class="form-label" for="price_service">{{ __('Preis Service-Gebühr') }}*</label>
|
||||
{{ Form::text('price_service', $travel_user_booking_fewo->price_service, array('placeholder'=>__('Preis Service-Gebühr'), 'class'=>'form-control')) }}
|
||||
<div class="form-group col-sm-4 col-md-2">
|
||||
<label class="form-label" for="price_service">{{ __('Preis Service-Gebühr') }}</label>
|
||||
{{ Form::text('price_service', $travel_user_booking_fewo->price_service, array('placeholder'=>__('Preis Service-Gebühr'), 'class'=>'form-control input-auto-calc')) }}
|
||||
</div>
|
||||
<div class="form-group col-sm-3">
|
||||
<label class="form-label" for="price_deposit">{{ __('Preis Kaution') }}*</label>
|
||||
{{ Form::text('price_deposit', $travel_user_booking_fewo->price_deposit, array('placeholder'=>__('Preis Kaution'), 'class'=>'form-control')) }}
|
||||
<div class="form-group col-sm-4 col-md-2">
|
||||
<label class="form-label" for="price_deposit">{{ __('Preis Kaution') }}</label>
|
||||
{{ Form::text('price_deposit', $travel_user_booking_fewo->price_deposit, array('placeholder'=>__('Preis Kaution'), 'class'=>'form-control input-auto-calc')) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group col-sm-3">
|
||||
<div class="form-group col-sm-6 col-md-3">
|
||||
<label class="form-label" for="price_balance">{{ __('Provisionsausgleich durch Vertriebskanal') }}</label>
|
||||
{{ Form::text('price_balance', $travel_user_booking_fewo->price_balance, array('placeholder'=>__(' Provisionsausgleich durch Vertriebskanal'), 'class'=>'form-control input-auto-calc')) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group col-sm-6 col-md-3">
|
||||
<label class="form-label" for="price_total">{{ __('Preis Gesamt') }}*</label>
|
||||
{{ Form::text('price_total', $travel_user_booking_fewo->price_total, array('placeholder'=>__('Preis Gesamt'), 'class'=>'form-control', 'readonly')) }}
|
||||
{{ Form::text('price_total', $travel_user_booking_fewo->price_total, array('placeholder'=>__('Preis Gesamt'), 'class'=>'form-control')) }}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
|
@ -104,7 +118,11 @@
|
|||
<div class="form-group col-sm-4">
|
||||
<label class="custom-control custom-checkbox">
|
||||
{!! Form::checkbox('is_calendar_stern_tours', 1, $travel_user_booking_fewo->is_calendar_stern_tours, ['class'=>'custom-control-input']) !!}
|
||||
<span class="custom-control-label">{{__('STERN TOURS')}}</span>
|
||||
<span class="custom-control-label">{{__('STERN TOURS')}} <br>Reservierung:
|
||||
@if($travel_user_booking_fewo->fewo_reservation && isset($travel_user_booking_fewo->fewo_reservation->from_date))
|
||||
{{ $travel_user_booking_fewo->fewo_reservation->from_date->format('d.m.Y') }} - {{ $travel_user_booking_fewo->fewo_reservation->to_date->format('d.m.Y') }}
|
||||
@endif
|
||||
</span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -137,8 +155,25 @@
|
|||
{{ Form::textarea('notice', $travel_user_booking_fewo->notice, ['class' => 'form-control', 'rows'=>4]) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function floatNumber(n) {
|
||||
'use strict';
|
||||
n = n.replace(/\./g, '').replace(',', '.');
|
||||
return parseFloat(n);
|
||||
}
|
||||
$( document ).ready(function() {
|
||||
$('input.input-auto-calc').on('change', function () {
|
||||
price_travel = floatNumber($("input[name='price_travel']").val());
|
||||
price_service = floatNumber($("input[name='price_service']").val());
|
||||
price_deposit = floatNumber($("input[name='price_deposit']").val());
|
||||
price_balance =floatNumber($("input[name='price_balance']").val());
|
||||
price_total = parseFloat(price_travel + price_service + price_deposit + price_balance);
|
||||
price_total = parseFloat((Math.round(price_total * 100) / 100)).toFixed(2).replace(".", ",");
|
||||
$("input[name='price_total']").val(price_total);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue