last changes since 6-2023

This commit is contained in:
Kevin Adametz 2023-07-03 10:10:09 +02:00
parent 561c5875a7
commit c1c613a4b9
53 changed files with 1351 additions and 93 deletions

View file

@ -91,6 +91,38 @@
</div>
</div>
</div>
@php($info_mail_files_count = 1)
<div class="form-row">
<div class="form-group col-sm-12 mb-1">
<label for="to" class="form-label">Ausgawählte Daten als Anhang an die E-Mail:</label>
@if($travel_user_booking_fewo->fewo_lodging)
<label class="custom-control custom-checkbox mt-2" style="margin-right: 20px;">
{!! Form::checkbox('info_mail_files['.$info_mail_files_count++.']', 'fewo_instruction_pdf', 1, ['class'=>'custom-control-input']) !!}
<span class="custom-control-label">
<a target="_blank" href="{{ route('customer_file_show', ['fewo_instruction_pdf', $travel_user_booking_fewo->fewo_lodging->id, 'stream']) }}" class="badge badge-sm badge-next">
<i class="fa fa-file-pdf mr-1"></i> {{\App\Services\BookingFewo::getFeWoInstructionPDFName($travel_user_booking_fewo->fewo_lodging)}}
</a>
</span>
</label>
@endif
@foreach(\App\Services\BookingFewo::contentFiles() as $content_file)
@if($file = \App\Models\CMSContent::getModelBySlug($content_file))
<label class="custom-control custom-checkbox mt-2" style="margin-right: 20px;">
{!! Form::checkbox('info_mail_files['.$info_mail_files_count++.']', $content_file, $file->integer, ['class'=>'custom-control-input']) !!}
<span class="custom-control-label">
<a target="_blank" href="{{ $file->getURL() }}" class="badge badge-sm badge-next">
<i class="fa fa-file-pdf mr-1"></i> {{$file->name}}
</a>
</span>
</label>
@endif
@endforeach
</div>
</div>
@if($travel_user_booking_fewo->send_info_mail)
<table class="table table-striped border-bottom">
<tbody>
@ -103,6 +135,7 @@
</tbody>
</table>
@endif
<div class="text-right mt-0">
<button type="submit" name="action" value="sendInfosMailtoUser" class="btn btn-primary btn-sm" onclick="return confirm('{{__('Mail an Mieter versenden?')}}');">{{ __('E-Mail mit Anreiseinfo an Kunden versenden') }}</button>&nbsp;
</div>