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

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

{!! Former::checkbox('pdf_email_attachment')->text(trans('texts.enable')) !!}   {{-- Former::select('recurring_hour')->options($recurringHours) --}} {!! Former::inline_radios('custom_invoice_link') ->onchange('onCustomLinkChange()') ->label(trans('texts.invoice_link')) ->radios([ trans('texts.subdomain') => ['value' => 'subdomain', 'name' => 'custom_link'], trans('texts.website') => ['value' => 'website', 'name' => 'custom_link'], ])->check($account->iframe_url ? 'website' : 'subdomain') !!} {{ Former::setOption('capitalize_translations', false) }} {!! Former::text('subdomain') ->placeholder(trans('texts.www')) ->onchange('onSubdomainChange()') ->addGroupClass('subdomain') ->label(' ') ->help(trans('texts.subdomain_help')) !!} {!! Former::text('iframe_url') ->placeholder('http://www.example.com/invoice') ->appendIcon('question-sign') ->addGroupClass('iframe_url') ->label(' ') ->help(trans('texts.subdomain_help')) !!}

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

{!! Former::select('email_design_id') ->style('width: 200px') ->addOption(trans('texts.plain'), 1) ->addOption(trans('texts.light'), 2) ->addOption(trans('texts.dark'), 3) ->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')) !!} @endif
@if (Auth::user()->isPro())
{!! Button::success(trans('texts.save'))->large()->submit()->appendIcon(Icon::create('floppy-disk')) !!}
@endif {!! Former::close() !!} @stop