{!! Former::plaintext('recipients')
->value('') !!}
{!! Former::select('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'),
]) !!}
{!! Former::text('emailSubject')
->placeholder('subject')
->onchange('onEmailSubjectChange()')
->raw() !!}
{!! Former::textarea("emailTemplate[body]")
->raw() !!}
{!! Former::text('emailTemplate[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->diffInDays() > 0 ? trans_choice('texts.days_ago', $activity->created_at->diffInDays()) : trans('texts.today') }}
|
@endforeach
@else
{{ trans("texts.{$invoice->getEntityType()}_not_emailed") }}
@endif