{!! Former::plaintext('recipients')
->value('') !!}
@if (Utils::isPro())
{!! Former::select('template_type')
->label('template')
->onchange('loadTemplate()')
->options([
$invoice->getEntityType() => trans('texts.initial_email'),
'reminder1' => trans('texts.first_reminder'),
'reminder2' => trans('texts.second_reminder'),
'reminder3' => trans('texts.third_reminder'),
]) !!}
@endif
{{ Former::setOption('TwitterBootstrap3.labelWidths.large', 0) }}
{{ Former::setOption('TwitterBootstrap3.labelWidths.small', 0) }}
{!! Former::text('emailSubject')
->placeholder('subject')
->label(false)
->onchange('onEmailSubjectChange()')
->oninput('onEmailSubjectInput()')
->appendIcon('question-sign')
->addGroupClass('email-subject') !!}
{{ Former::setOption('TwitterBootstrap3.labelWidths.large', 4) }}
{{ Former::setOption('TwitterBootstrap3.labelWidths.small', 4) }}
{!! Former::textarea("template[body]")->raw() !!}
{!! Former::text('template[subject]')->raw() !!}
{!! Former::text('reminder')->raw() !!}
@include('partials/quill_toolbar', ['name' => 'template'])
@if (count($activities = $invoice->emailHistory()))
{{ trans('texts.template')}} |
{{ trans('texts.contact')}} |
{{ trans('texts.date')}} |
@foreach ($activities as $activity)
{{ $activity->present()->notes }} |
{{ $activity->contact->getDisplayName() }}
|
{{ $activity->present()->createdAtDate }} - {{ $activity->created_at->diffForHumans() }}
|
@endforeach
@else
{{ trans("texts.{$invoice->getEntityType()}_not_emailed") }}
@endif