mein-sterntours/resources/views/travel/program/_details.blade.php
Kevin Adametz 881fc84207 08 2024
2024-08-05 11:58:09 +02:00

114 lines
No EOL
6.1 KiB
PHP

<div class="card mb-2 border-primary">
<h6 class="card-header bg-primary text-white py-2" data-toggle="collapse" data-target="#collapseTravelProgramDetails" aria-expanded="false" aria-controls="collapseTravelProgramDetails">
<strong style="line-height: 1.6em">Details</strong>
</h6>
<div class="collapse" id="collapseTravelProgramDetails">
<div class="card-body">
<div class="form-row">
<div class="form-group col-sm-6 col-md-4">
<label for="default_flight_price" class="form-label">{{ __('Standard-Flugpreis') }}</label>
{{ Form::text('default_flight_price', $program->default_flight_price, array('class'=>'form-control', 'id'=>'default_flight_price')) }}
</div>
<div class="form-group col-sm-6 col-md-4">
<label for="deposit_percent" class="form-label">{{ __(' Anzahlung in %') }}
<button type="button" class="btn btn-xs btn-default" title=" wenn leer, default Wert 20%<br>0 = keine Anzahlung<br>Ägypten 20% vom Gesamtpreis<br>Rest 100% vom Flugpreis und 20% Landleistung" data-placement="top" rel="tooltip">
<i class="fa fa-info"></i></button></label>
{{ Form::text('deposit_percent', $program->deposit_percent, array('class'=>'form-control', 'id'=>'deposit_percent')) }}
</div>
<div class="form-group col-6 col-sm-3 col-md-2">
<label for="discount" class="form-label">{{ __('Rabatt') }}*</label>
{{ Form::text('discount', $program->discount, array('class'=>'form-control', 'id'=>'discount')) }}
</div>
<div class="form-group col-6 col-sm-3 col-md-2">
<label for="discount_is_percent_value" class="form-label">{{ __('Rabatt in') }}*</label>
{{ Form::select('discount_is_percent_value', $program::$programDiscountTypes , $program->discount_is_percent_value, array('class'=>'custom-select', 'id'=>'discount_is_percent_value')) }}
</div>
<div class="form-group col-sm-6 col-md-4">
<label for="travel_arrival_point_id" class="form-label">{{ __('Zielflughafen') }}* <a href="{{ route('admin_settings_travel_arrival_point') }}"><i class="fa fa-edit"></i></a></label>
{{ Form::select('travel_arrival_point_id', \App\Services\Model::getTravelArrivalPointArray(true) , $program->travel_arrival_point_id, array('class'=>'custom-select', 'id'=>'travel_arrival_point_id')) }}
</div>
<div class="form-group col-sm-6 col-md-4">
<label for="max_age_for_children" class="form-label">{{ __('max. Alter für Kinderermäßigung (0 = keine)') }}</label>
{{ Form::text('max_age_for_children', $program->max_age_for_children, array('class'=>'form-control', 'id'=>'max_age_for_children')) }}
</div>
{{-- <div class="form-group col-sm-6 col-md-4">
<label for="url" class="form-label">{{ __('URL') }}</label>
{{ Form::text('url', $program->url, array('class'=>'form-control', 'id'=>'url')) }}
</div>
--}}
<div class="form-group col-sm-12 col-md-12">
<label for="generalnote" class="form-label">{{ __('Reisehinweise') }}* <a href="{{ route('admin_settings_gerneral_notes') }}"><i class="fa fa-edit"></i></a></label>
{{ Form::select('generalnote', \App\Services\Model::getTravelGerneralNotesArray(true) , $program->generalnote, array('class'=>'custom-select', 'id'=>'generalnote')) }}
</div>
<div class="form-group col-sm-12 col-md-12 ">
<hr>
<label for="payment_conditions" class="form-label">{{ __('Anzahlungsbedingungen') }}
<button type="button" class="btn btn-xs btn-default" title=" wenn leer, default Text, sonst wird default Text komplett ersetzt." data-placement="top" rel="tooltip">
<i class="fa fa-info"></i></button></label>
{{ Form::textarea('payment_conditions', $program->payment_conditions, array('placeholder'=>__('Anzahlungsbedingungen'), 'class'=>'form-control autoExpand', 'rows'=>1)) }}
<p class="small m-1">Default Text unter: <a href="{{ route('cms_content_all') }}">Admin -> Inhalte -> Allgemein (anzahlungsbedingungen)</a></p>
<em class="small p-1 badge-outline-primary">{{ App\Models\CMSContent::getContentBySlug('anzahlungsbedingungen') }}</em>
<hr>
</div>
<div class="col-sm-12">
<div class="text-left mt-2">
<button type="submit" name="action" value="saveDetails" class="btn btn-sm btn-secondary">Änderungen speichern</button>&nbsp;
<a href="{{route('travel_programs')}}" class="btn btn-sm btn-default">{{ __('zur Übersicht') }}</a>
</div>
</div>
</div>
</div>
</div>
</div>
{{--
Text
Eingeschlossene Leistungen (pro Zeile eine Leistung!)
included
Klassen/Kategorien und zusätzliche Infos (erscheint unterhalb der "Eingeschlossenen Leistungen") (HTML)
class_description
Nicht eingeschlossene Leistungen (pro Zeile eine Leistung!)
excluded
Hinweise
advices
Anmerkungen (pro Zeile eine Anmerkung!)
notes
HTML-Beschreibung
html_description
Text (rechts außen)
text_right
Reiseversicherung 1
Reiseversicherung 2
Reiseversicherung 3
Reiseversicherung 4
Im Slider anzeigen?
Kartentyp
Währung der Netto-Preise
Position bei Suchergebnissen (Kleinere Wert bedeutet höhere Position)
--}}