@extends('header') @section('head') @parent @stop @section('content') @parent @include('accounts.nav', ['selected' => ACCOUNT_EMAIL_SETTINGS, 'advanced' => true]) {!! Former::open()->rules([ 'bcc_email' => 'email', 'reply_to_email' => 'email', ])->addClass('warn-on-exit') !!} {{ Former::populate($account) }} {{ Former::populateField('pdf_email_attachment', intval($account->pdf_email_attachment)) }} {{ Former::populateField('ubl_email_attachment', intval($account->ubl_email_attachment)) }} {{ Former::populateField('document_email_attachment', intval($account->document_email_attachment)) }} {{ Former::populateField('enable_email_markup', intval($account->enable_email_markup)) }} {{ Former::populateField('bcc_email', $account->account_email_settings->bcc_email) }} {{ Former::populateField('reply_to_email', $account->account_email_settings->reply_to_email) }}

{!! trans('texts.email_settings') !!}

{!! Former::text('reply_to_email') ->placeholder(Auth::user()->registered ? Auth::user()->email : ' ') ->help('reply_to_email_help') !!} {!! Former::text('bcc_email') ->help('bcc_email_help') !!}   {!! Former::checkbox('pdf_email_attachment') ->text(trans('texts.enable')) ->value(1) ->help(Utils::isNinjaProd() ? '' : (config('pdf.phantomjs.bin_path') ? (config('pdf.phantomjs.cloud_key') ? trans('texts.phantomjs_local_and_cloud') : trans('texts.phantomjs_local')) : trans('texts.phantomjs_help', [ 'link_phantom' => link_to('https://phantomjscloud.com/', 'phantomjscloud.com', ['target' => '_blank']), 'link_docs' => link_to('https://invoice-ninja.readthedocs.io/en/latest/configure.html#phantomjs', 'PhantomJS', ['target' => '_blank']) ])) . ' | ' . link_to('/test_headless', trans('texts.test'), ['target' => '_blank'])) !!} {!! Former::checkbox('document_email_attachment') ->text(trans('texts.enable')) ->value(1) !!} {!! Former::checkbox('ubl_email_attachment') ->text(trans('texts.enable')) ->label(sprintf('%s [%s]', trans('texts.ubl_email_attachment'), trans('texts.beta'))) ->value(1) !!}   {{-- Former::select('recurring_hour')->options($recurringHours) --}}

{!! trans('texts.email_design') !!}

{!! Former::select('email_design_id') ->appendIcon('question-sign') ->addGroupClass('email_design_id') ->addOption(trans('texts.plain'), EMAIL_DESIGN_PLAIN) ->addOption(trans('texts.light'), EMAIL_DESIGN_LIGHT) ->addOption(trans('texts.dark'), EMAIL_DESIGN_DARK) ->help(trans('texts.email_design_help')) !!}   @if (Utils::isNinja()) {!! Former::checkbox('enable_email_markup') ->text(trans('texts.enable') . '' . Icon::create('question-sign') . ' ') ->help(trans('texts.enable_email_markup_help')) ->value(1) !!} @endif

{!! trans('texts.signature') !!}

{!! Former::textarea('email_footer')->style('display:none')->raw() !!}
{!! Button::normal(trans('texts.raw'))->withAttributes(['onclick' => 'showRaw()'])->small() !!}
@include('partials/quill_toolbar', ['name' => 'signature'])
@if (Auth::user()->hasFeature(FEATURE_CUSTOM_EMAILS))
{!! Button::success(trans('texts.save'))->large()->submit()->appendIcon(Icon::create('floppy-disk')) !!}
@endif {!! Former::close() !!} @stop