{{ $value->title }} @if($value->subtitle)
{{$value->subtitle}} @endif
{!! Form::open(['url' => $value->url, 'class' => '', 'id'=>'lead-mail-form']) !!} {{ Form::hidden('lead_id', $value->id) }} {{ Form::hidden('collapse_shows', '') }} {{ Form::hidden('action', '') }} @if(isset($value->save_lead_mail_id)) {{ Form::hidden('save_lead_mail_id', $value->save_lead_mail_id) }} @endif @if($value->show === 'single' || $value->show === 'reply')
@if(isset($value->lead))
Anfrage:
({{ $value->lead->id }})
@if($value->lead->customer) Kunde:
{{ $value->lead->customer->getSalutation(true) }} {{ $value->lead->customer->title }} {{ $value->lead->customer->firstname }} {{ $value->lead->customer->name }} ({{$value->lead->id}}) @endif
@endif
@if(isset($value->lead_mail)) Antwort auf:
{{ $value->lead_mail->id }} || {{ $value->lead_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->lead))
{{ Form::text('mail_from', isset($value->replay_email) ? $value->replay_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->lead) && $value->lead->travel_country) @foreach(\App\Services\Lead::getCustomerMailDirs() as $lead_mail_dir) @if($lead_mail_dir->pos > 0) @endif @endforeach @endif
@endif @if(isset($value->lead_mail)) {{ Form::hidden('lead_mail_id', $value->lead_mail->id) }} @endif
{!! Form::close() !!}
@if($value->show === 'single' && isset($value->lead)) @endif
Datei Anhänge
@if($value->show === 'single' && isset($value->lead))
@include('lead.modal-new-lead-files', ['lead'=>$value->lead])
@endif
@if(isset($value->lead_files)) @foreach($value->lead_files as $lead_file)
{{$lead_file->original_name}}
{{$lead_file->formatBytes()}}
Vorschau   löschen
@endforeach @endif
{!! Form::open([ 'url' => route('lead_mail_upload_attachment', ['tmp']), 'method' => 'post', 'files' => true, 'enctype' => 'multipart/form-data', 'class' => 'dropzone', 'id' => 'uploadAttachmentFile' ]) !!}
{!! Form::close() !!}
@if(isset($value->lead_mail))
@include('lead.modal-show-mail-inner', ['lead_mail' => $value->lead_mail]) @endif
@if($value->show === 'single' || $value->show === 'multi') @if($value->draft) @endif @endif @if($value->show === 'reply') @endif
Vorschau   entfernen