mein-sterntours/resources/views/request/modal-mail.blade.php
2020-03-12 09:37:01 +01:00

40 lines
1.7 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{!! Form::open(['url' => $url, 'class' => 'modal-content', 'onsubmit'=>'return confirm("E-Mail wirklich senden?");']) !!}
<div class="modal-header">
<h5 class="modal-title">
{{$data['title']}}
</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">×</button>
</div>
<div class="modal-body">
<div class="form-row">
<div class="form-group col">
<label for="to" class="form-label">E-Mail senden an:</label>
@foreach($value->customers as $key=>$val)
<label class="custom-control custom-checkbox mt-2" style="margin-right: 20px;">
{!! Form::checkbox('send_mail_to['.$key.']', 1, $key, ['class'=>'custom-control-input']) !!}
<span class="custom-control-label">{{$val}}</span>
</label>
@endforeach
</div>
</div>
<div class="form-row">
<div class="form-group col">
<label for="subject" class="form-label">Betreff</label>
{{ Form::text('subject', '', array('placeholder'=>'', 'id'=>'subject', 'class'=>'form-control', 'required')) }}
</div>
</div>
<div class="form-group mb-1">
<label class="form-label" for="message">Nachricht</label>
{{ Form::textarea('message', $value->message, array('class'=>'form-control', 'rows'=>15)) }}
</div>
<p>Platzhalter: #geehrte/r# #Anrede# #Vorname# #Nachname# #Reiseland# #Programm# </p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">schließen</button>
<button type="submit" class="btn btn-primary"><i class="ion ion-ios-mail-open"></i> senden</button>
</div>
{!! Form::close() !!}