{{ $value->title }} @if($value->subtitle)
{{$value->subtitle}} @endif
{!! Form::open(['url' => $value->url, 'class' => '', 'id'=>'customer-mail-form']) !!} {{ Form::hidden('booking_id', $value->id) }} {{ Form::hidden('action', '') }} @if(isset($value->save_customer_mail_id)) {{ Form::hidden('save_customer_mail_id', $value->save_customer_mail_id) }} @endif @if($value->show === 'single' || $value->show === 'reply')
@if(isset($value->booking))
Buchung:
@if($value->booking->travel_country_id) {{ " | ".$value->booking->travel_country->name }} @endif @if($value->booking->travelagenda_id) {{ " | ".$value->booking->travel_agenda->name }} @endif ({{ $value->booking->id }})
@if($value->booking->customer) Kunde:
{{ $value->booking->customer->salutation->name }} {{ $value->booking->customer->title }} {{ $value->booking->customer->firstname }} {{ $value->booking->customer->name }} @endif @if($value->booking->lead) ({{$value->booking->lead->id}}) @endif
@endif
@if(isset($value->customer_mail)) Antwort auf:
{{ $value->customer_mail->id }} || {{ $value->customer_mail->subject }} @endif

@endif @if(isset($value->customers)) @if($value->show === 'single')
@foreach($value->customers as $key=>$val) @endforeach
{{ Form::textarea('recipient', $value->recipient, ['class' => 'form-control', 'rows'=>4]) }}
{{ Form::textarea('cc', $value->cc, ['class' => 'form-control', 'rows'=>4]) }}
{{ Form::textarea('bcc', $value->bcc, ['class' => 'form-control', 'rows'=>4]) }}
@endif @if($value->show === 'multi')
@foreach($value->customers as $key=>$val) @endforeach
@endif @endif @if($value->show === 'reply' && isset($value->booking))
{{ Form::text('mail_from', $value->booking->customer ? $value->booking->customer->email : '', array('placeholder'=>'E-Mail Adresse von', 'id'=>'mail_from', 'class'=>'form-control', 'required')) }}
{{ Form::text('sent_at', \Carbon::now()->format('d.m.Y H:i'), array('placeholder'=>__(\Carbon::now()->format('d.m.Y - H:i')), 'class'=>'form-control b-material-datetime-picker', 'id'=>'sent_at')) }}
@endif
{{ Form::hidden('lead_title_id', $value->lead_title_id, array('id'=>'lead_title_id')) }}
{{ Form::text('subject', $value->subject, array('placeholder'=>$value->s_placeholder, 'id'=>'subject', 'class'=>'form-control', 'required')) }}
@if($value->show === 'single' || $value->show === 'multi') @if(Auth::user()->isPermission('sua-st-em'))
Vorlage unter: Einstellungen -> E-Mails / Vorlagen
@endif @endif
{!! $value->message !!}
{{ Form::textarea('message', $value->message, array('placeholder'=>$value->m_placeholder, 'id'=>'message-editor-fallback', 'class'=>'form-control d-none', 'rows'=>15)) }}
@if($value->show === 'single' || $value->show === 'multi')

# {{__('Vorlage Bezeichnung')}} {{__('Verzeichniss')}}  

@endif @if($value->show === 'single' || $value->show === 'reply')
{{-- TODO load subdirs by pos id --}} @if(isset($value->booking) && $value->booking->travel_country) @foreach(\App\Services\Booking::getCustomerMailDirs() as $customer_mail_dir) @if($customer_mail_dir->pos > 0) @endif @endforeach @endif
@endif @if(isset($value->customer_mail)) {{ Form::hidden('customer_mail_id', $value->customer_mail->id) }} @endif
{!! Form::close() !!}
@if($value->show === 'single' && isset($value->booking)) @endif
Datei Anhänge
@if($value->show === 'single' && isset($value->booking))
@include('customer.mail.modal-new-booking-files', ['booking'=>$value->booking])
@endif
@if(isset($value->customer_files)) @foreach($value->customer_files as $customer_file)
{{$customer_file->original_name}}
{{$customer_file->formatBytes()}}
Vorschau   löschen
@endforeach @endif
{!! Form::open([ 'url' => route('customer_mail_upload_attachment', ['tmp']), 'method' => 'post', 'files' => true, 'enctype' => 'multipart/form-data', 'class' => 'dropzone', 'id' => 'uploadAttachmentFile' ]) !!}
{!! Form::close() !!}
@if(isset($value->customer_mail))
@include('customer.mail.modal-show-mail-inner', ['customer_mail' => $value->customer_mail]) @endif
@if($value->show === 'single' || $value->show === 'multi') @if($value->draft) @endif @endif @if($value->show === 'reply') @endif
Vorschau   entfernen