Reiseland Kontaktdaten, Rabatt API

This commit is contained in:
Kevin Adametz 2019-11-07 17:08:16 +01:00
parent 8f29c15a2b
commit 70704be1ea
30 changed files with 471 additions and 95 deletions

View file

@ -8,7 +8,7 @@
{!! '<a href="'.route('travel_user_detail', [$travel_user_booking_fewo->travel_user_id]) .'">'.$travel_user_booking_fewo->travel_user->first_name.' '.$travel_user_booking_fewo->travel_user->last_name.'</a>' !!}
@endif</label>
<select class="selectpicker" data-style="btn-light" name="travel_user_id" data-live-search="true" required>
{!! HTMLHelper::getTravelUserOptions($travel_user_booking_fewo->travel_user_id) !!}
{!! HTMLHelper::getTravelUserOptions($travel_user_booking_fewo->travel_user_id, "DESC") !!}
</select>
@ -213,28 +213,26 @@
</div>
</h4>
@endif
@if($travel_user_booking_fewo->isInvoice())
@if($travel_user_booking_fewo->send_user_mail)
<table class="table table-striped border-bottom mt-4">
<tbody>
@foreach($travel_user_booking_fewo->send_user_mail as $send_user_mail)
<tr>
<td style="width: 25%"><strong>{!! key($send_user_mail) !!}</strong><br>E-Mail versendet.</td>
<td><span class="small">{!! nl2br(current($send_user_mail)) !!}</span></td>
</tr>
@endforeach
</tbody>
</table>
@endif
<div class="form-row">
<div class="form-group col-sm-12 mt-2">
{{ Form::textarea('send_mail_user_notice', '', ['placeholder'=>'Wichtige Hinweise in E-Mail, werden nur in die aktuelle E-Mail übernommen', 'class' => 'form-control autoExpand', 'rows'=>1]) }}
</div>
</div>
<div class="text-right mt-0">
<button type="submit" name="action" value="sendMailtoUser" class="btn btn-primary btn-sm" onclick="return confirm('{{__('E-Mail Mietbestätigung an Mieter versenden?')}}');">{{ __('E-Mail mit Mietbestätigung / Rechnung und Mietbedingungen an Kunden versenden') }}</button>&nbsp;
</div>
@if($travel_user_booking_fewo->send_user_mail)
<table class="table table-striped border-bottom mt-4">
<tbody>
@foreach($travel_user_booking_fewo->send_user_mail as $send_user_mail)
<tr>
<td style="width: 25%"><strong>{!! key($send_user_mail) !!}</strong><br>E-Mail versendet.</td>
<td><span class="small">{!! nl2br(current($send_user_mail)) !!}</span></td>
</tr>
@endforeach
</tbody>
</table>
@endif
<div class="form-row">
<div class="form-group col-sm-12 mt-2">
{{ Form::textarea('send_mail_user_notice', '', ['placeholder'=>'Wichtige Hinweise in E-Mail, werden nur in die aktuelle E-Mail übernommen', 'class' => 'form-control autoExpand', 'rows'=>1]) }}
</div>
</div>
<div class="text-right mt-0">
<button type="submit" name="action" value="sendMailtoUser" class="btn btn-primary btn-sm" onclick="return confirm('{{__('E-Mail Mietbestätigung an Mieter versenden?')}}');">{{ __('E-Mail mit Mietbestätigung / Rechnung und Mietbedingungen an Kunden versenden') }}</button>&nbsp;
</div>
</div>
</div>
@ -258,36 +256,34 @@
</div>
</h4>
@endif
<div class="form-row">
<div class="form-group col-sm-12">
<button class="btn btn-default btn-sm " type="button" data-toggle="collapse" data-target="#collapseTravelInfo" aria-expanded="false" aria-controls="collapseTravelInfo">
{{ __('Inhalt für das PDF / Mail') }} <i class="fa fa-angle-down"></i>
</button>
<div class="collapse mt-2" id="collapseTravelInfo">
{{ Form::textarea('info_mail_text', $travel_user_booking_fewo->info_mail_text, ['class' => 'form-control autoExpand', 'rows'=>1, 'id'=>'travel_info_user_text']) }}
<em>Grundtext in ADMIN CMS > <a href="{{route('cms_content_all')}}">Inhalte</a> > PDF Vorlage Anreiseinfo FeWo</em>
<em class="small">(Änderungen werden hier gespeichert.)</em>
<div class="form-row">
<div class="form-group col-sm-12">
<button class="btn btn-default btn-sm " type="button" data-toggle="collapse" data-target="#collapseTravelInfo" aria-expanded="false" aria-controls="collapseTravelInfo">
{{ __('Inhalt für das PDF / Mail') }} <i class="fa fa-angle-down"></i>
</button>
<div class="collapse mt-2" id="collapseTravelInfo">
{{ Form::textarea('info_mail_text', $travel_user_booking_fewo->info_mail_text, ['class' => 'form-control autoExpand', 'rows'=>1, 'id'=>'travel_info_user_text']) }}
<em>Grundtext in ADMIN CMS > <a href="{{route('cms_content_all')}}">Inhalte</a> > PDF Vorlage Anreiseinfo FeWo</em>
<em class="small">(Änderungen werden hier gespeichert.)</em>
</div>
</div>
</div>
@if($travel_user_booking_fewo->isTravelInfo())
@if($travel_user_booking_fewo->send_info_mail)
<table class="table table-striped border-bottom">
<tbody>
@foreach($travel_user_booking_fewo->send_info_mail as $send_info_mail)
<tr>
<td style="width: 25%"><strong>{!! key($send_info_mail) !!}</strong><br>E-Mail versendet.</td>
<td><span class="small">{!! nl2br(current($send_info_mail)) !!}</span></td>
</tr>
@endforeach
</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>
</div>
@if($travel_user_booking_fewo->send_info_mail)
<table class="table table-striped border-bottom">
<tbody>
@foreach($travel_user_booking_fewo->send_info_mail as $send_info_mail)
<tr>
<td style="width: 25%"><strong>{!! key($send_info_mail) !!}</strong><br>E-Mail versendet.</td>
<td><span class="small">{!! nl2br(current($send_info_mail)) !!}</span></td>
</tr>
@endforeach
</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>
</div>
</div>
@endif

View file

@ -20,6 +20,7 @@
<th>{{__('vom')}}</th>
<th>{{__('bis')}}</th>
<th>{{__('Eingetragen')}}</th>
<th>{{__('Mails')}}</th>
<th>{{__('Status')}}</th>
<th>{{__('Datum')}}</th>
<th>{{__('R.-Nr.')}}</th>
@ -48,6 +49,7 @@
{ data: 'from_date', name: 'from_date' },
{ data: 'to_date', name: 'to_date' },
{ data: 'is_calendar', name: 'is_calendar', orderable: false },
{ data: 'is_mail', name: 'is_mail', orderable: false },
{ data: 'status_name', name: 'status_name' },
{ data: 'booking_date', name: 'booking_date' },
{ data: 'invoice_number', name: 'invoice_number' },
@ -88,6 +90,7 @@
$('.selectpicker').selectpicker();
}*/
});
$('#datatables-default').tooltip({selector: '[data-toggle="tooltip"]'});
});
</script>