92 lines
No EOL
6 KiB
PHP
Executable file
92 lines
No EOL
6 KiB
PHP
Executable file
<div class="card mb-2">
|
|
<h6 class="card-header bg-primary text-white py-2" data-toggle="collapse" data-target="#collapseBookingServices" aria-expanded="false" aria-controls="collapseBookingServices">
|
|
<strong style="line-height: 1.6em">Leistungen</strong>
|
|
</h6>
|
|
<div class="collapse" id="collapseBookingServices">
|
|
|
|
<div class="card-body row">
|
|
|
|
<div class="col-md-4 col-sm-12">
|
|
<h5 class="card-title mt-3 mb-1">Agentur</h5>
|
|
<hr class="mt-0 mb-0">
|
|
@if($booking->travel_country)
|
|
@foreach($booking->travel_country->getContactLandsModels() as $TravelCountry)
|
|
@if($TravelCountry->stern_travel_country->count())
|
|
<h6 class="pt-2 pb-2 mb-0">{{$TravelCountry->stern_travel_country->name}}</h6>
|
|
@foreach($TravelCountry->stern_travel_country->travel_country_services as $travel_country_service)
|
|
<div class="pb-3">
|
|
<label class="switcher switcher-on-off">
|
|
{{ Form::hidden('country_service['.$travel_country_service->id.']', 0) }}
|
|
{{ Form::checkbox('country_service['.$travel_country_service->id.']', 1, \App\Models\BookingCountryService::getStatus($travel_country_service->id, $booking->id), array('class'=>'switcher-input')) }}
|
|
<span class="switcher-indicator">
|
|
<span class="switcher-yes"><span class="ion ion-md-checkmark"></span></span>
|
|
<span class="switcher-no"><span class="ion ion-md-close"></span></span>
|
|
</span>
|
|
<span class="switcher-label">{{ $travel_country_service->name }}</span>
|
|
</label>
|
|
</div>
|
|
@endforeach
|
|
@endif
|
|
@endforeach
|
|
@endif
|
|
</div>
|
|
<div class="col-md-4 col-sm-12">
|
|
<h5 class="card-title mt-3 mb-1">Leistungsträger</h5>
|
|
<hr class="mt-0 mb-0">
|
|
@if($booking->service_provider_entries->count())
|
|
@foreach($booking->service_provider_entries as $service_provider_entry)
|
|
@if($service_provider_entry->service_provider->service_provider_services->count())
|
|
<h6 class="pt-2 pb-2 mb-0">{{$service_provider_entry->service_provider->name}}</h6>
|
|
@foreach($service_provider_entry->service_provider->service_provider_services as $service_provider_service)
|
|
<div class="pb-3">
|
|
<label class="switcher switcher-on-off">
|
|
{{ Form::hidden('provider_service['.$service_provider_service->id.']', 0) }}
|
|
{{ Form::checkbox('provider_service['.$service_provider_service->id.']', 1, \App\Models\BookingProviderService::getStatus($service_provider_service->id, $booking->id), array('class'=>'switcher-input')) }}
|
|
<span class="switcher-indicator">
|
|
<span class="switcher-yes"><span class="ion ion-md-checkmark"></span></span>
|
|
<span class="switcher-no"><span class="ion ion-md-close"></span></span>
|
|
</span>
|
|
<span class="switcher-label">{{ $service_provider_service->name }}</span>
|
|
</label>
|
|
</div>
|
|
@endforeach
|
|
@endif
|
|
@endforeach
|
|
@endif
|
|
</div>
|
|
|
|
<div class="col-md-4 col-sm-12">
|
|
<h5 class="card-title mt-3 mb-1">Reiseveranstalter</h5>
|
|
<hr class="mt-0 mb-0">
|
|
@if($booking->booking_service_items->count())
|
|
@foreach($booking->booking_service_items as $booking_service_item)
|
|
@if($booking_service_item->travel_company->travel_company_services->count())
|
|
<h6 class="pt-2 pb-2 mb-0">{{$booking_service_item->travel_company->name}}</h6>
|
|
@foreach($booking_service_item->travel_company->travel_company_services as $travel_company_service)
|
|
<div class="pb-3">
|
|
<label class="switcher switcher-on-off">
|
|
{{ Form::hidden('company_service['.$travel_company_service->id.']', 0) }}
|
|
{{ Form::checkbox('company_service['.$travel_company_service->id.']', 1, \App\Models\BookingCompanyService::getStatus($travel_company_service->id, $booking->id), array('class'=>'switcher-input')) }}
|
|
<span class="switcher-indicator">
|
|
<span class="switcher-yes"><span class="ion ion-md-checkmark"></span></span>
|
|
<span class="switcher-no"><span class="ion ion-md-close"></span></span>
|
|
</span>
|
|
<span class="switcher-label">{{ $travel_company_service->name }}</span>
|
|
</label>
|
|
</div>
|
|
@endforeach
|
|
@endif
|
|
@endforeach
|
|
@endif
|
|
</div>
|
|
<div class="col-12">
|
|
<hr>
|
|
<div class="text-left mt-3">
|
|
<button type="submit" name="action" value="update_booking_services" class="btn btn-sm btn-secondary">{{ __('save changes') }}</button>
|
|
<a href="{{route('requests')}}" class="btn btn-sm btn-default">{{ __('zur Übersicht') }}</a>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div> |