@extends('header') @section('head') @parent @stop @section('content') @parent @include('accounts.nav', ['selected' => ACCOUNT_EMAIL_SETTINGS, 'advanced' => true]) {!! Former::open()->rules([ 'iframe_url' => 'url' ])->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') ->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')) !!} @endif
@if (Auth::user()->isPro())
{!! Button::success(trans('texts.save'))->large()->submit()->appendIcon(Icon::create('floppy-disk')) !!}
@endif {!! Former::close() !!} @stop