{{ trans($invoice->isQuote() ? 'texts.email_quote' : 'texts.email_invoice') }}

{!! 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
  • {{ trans('texts.preview') }}
  • @if (Utils::isPro())
  • {{ trans('texts.customize') }} {!! Auth::user()->isTrial() ? '' . trans('texts.pro') . '' : '' !!}
  • @endif
  • {{ trans('texts.history') }}

{{ 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())) @foreach ($activities as $activity) @endforeach
{{ trans('texts.template')}} {{ trans('texts.contact')}} {{ trans('texts.date')}}
{{ $activity->present()->notes }} {{ $activity->contact->getDisplayName() }} {{ $activity->present()->createdAtDate }} - {{ $activity->created_at->diffForHumans() }}
@else
{{ trans("texts.{$invoice->getEntityType()}_not_emailed") }}
@endif
{!! Former::checkbox('save_as_default') ->text('save_as_default') ->raw() !!}