@extends('header') @section('head') @parent @include('money_script') @stop @section('content') @parent {!! Former::open_for_files() ->rules([ 'iframe_url' => 'url', ]) ->addClass('warn-on-exit') !!} {!! Former::populate($account) !!} {!! Former::populateField('enable_client_portal', intval($account->enable_client_portal)) !!} {!! Former::populateField('enable_client_portal_dashboard', intval($account->enable_client_portal_dashboard)) !!} {!! Former::populateField('enable_portal_password', intval($enable_portal_password)) !!} {!! Former::populateField('send_portal_password', intval($send_portal_password)) !!} {!! Former::populateField('enable_buy_now_buttons', intval($account->enable_buy_now_buttons)) !!} {!! Former::populateField('show_accept_invoice_terms', intval($account->show_accept_invoice_terms)) !!} {!! Former::populateField('show_accept_quote_terms', intval($account->show_accept_quote_terms)) !!} {!! Former::populateField('require_invoice_signature', intval($account->require_invoice_signature)) !!} {!! Former::populateField('require_quote_signature', intval($account->require_quote_signature)) !!} {!! Former::populateField('signature_on_pdf', intval($account->signature_on_pdf)) !!} @include('accounts.nav', ['selected' => ACCOUNT_CLIENT_PORTAL, 'advanced' => true])

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

@foreach (App\Models\Account::$customMessageTypes as $type) {!! Former::textarea('custom_messages[' . $type . ']') ->label($type) !!} @endforeach
{!! Former::textarea('client_view_css') ->label(trans('texts.custom_css')) ->rows(10) ->raw() ->maxlength(60000) ->style("min-width:100%;max-width:100%;font-family:'Roboto Mono', 'Lucida Console', Monaco, monospace;font-size:14px;'") !!}
@if (Utils::isSelfHost())
{!! Former::textarea('client_view_js') ->label(trans('texts.custom_js')) ->rows(10) ->raw() ->maxlength(60000) ->style("min-width:100%;max-width:100%;font-family:'Roboto Mono', 'Lucida Console', Monaco, monospace;font-size:14px;'") !!}
@endif

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

{!! Former::checkbox('enable_portal_password') ->text(trans('texts.enable')) ->help(trans('texts.enable_portal_password_help')) ->label(trans('texts.enable_portal_password')) ->value(1) !!} {!! Former::checkbox('send_portal_password') ->text(trans('texts.enable')) ->help(trans('texts.send_portal_password_help')) ->label(trans('texts.send_portal_password')) ->value(1) !!} {!! Former::plaintext('client_login') ->value(link_to($account->present()->clientLoginUrl, null, ['target' => '_blank'])) ->help(Utils::isNinja() && ! $account->subdomain && ! $account->iframe_url ? 'improve_client_portal_link' : '') !!}
{!! Former::checkbox('show_accept_invoice_terms') ->text(trans('texts.enable')) ->help(trans('texts.show_accept_invoice_terms_help')) ->label(trans('texts.show_accept_invoice_terms')) ->value(1) !!} {!! Former::checkbox('show_accept_quote_terms') ->text(trans('texts.enable')) ->help(trans('texts.show_accept_quote_terms_help')) ->label(trans('texts.show_accept_quote_terms')) ->value(1) !!}
{!! Former::checkbox('require_invoice_signature') ->text(trans('texts.enable')) ->help(trans('texts.require_invoice_signature_help')) ->label(trans('texts.require_invoice_signature')) ->value(1) !!} {!! Former::checkbox('require_quote_signature') ->text(trans('texts.enable')) ->help(trans('texts.require_quote_signature_help')) ->label(trans('texts.require_quote_signature')) ->value(1) !!} {!! Former::checkbox('signature_on_pdf') ->text(trans('texts.enable')) ->help(trans('texts.signature_on_pdf_help')) ->value(1) !!}

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

@if (count($gateway_types) && count($products)) {!! Former::checkbox('enable_buy_now_buttons') ->text(trans('texts.enable')) ->label(' ') ->help(trans('texts.enable_buy_now_buttons_help')) ->value(1) !!} @if ($account->enable_buy_now_buttons) {!! Former::select('product') ->onchange('updateBuyNowButtons()') ->addOption('', '') ->inlineHelp('buy_now_buttons_warning') ->addGroupClass('product-select') !!} @if (count($account->present()->customTextFields)) {!! Former::inline_checkboxes('custom_fields') ->onchange('updateBuyNowButtons()') ->checkboxes($account->present()->customTextFields) !!} @endif {!! Former::inline_radios('landing_page') ->onchange('showPaymentTypes();updateBuyNowButtons();') ->radios([ trans('texts.invoice') => ['value' => 'invoice', 'name' => 'landing_page_type'], trans('texts.payment') => ['value' => 'payment', 'name' => 'landing_page_type'], ])->check('invoice') !!} {!! Former::text('redirect_url') ->onchange('updateBuyNowButtons()') ->placeholder('https://www.example.com') ->help('redirect_url_help') !!} {!! Former::checkbox('is_recurring') ->text('enable') ->label('recurring') ->onchange('showRecurring();updateBuyNowButtons();') ->value(1) !!}

 

@endif   @else
{{ trans('texts.buy_now_buttons_disabled') }}
@endif
@if (Auth::user()->isPro())
{!! Button::success(trans('texts.save'))->submit()->large()->appendIcon(Icon::create('floppy-disk')) !!}
@endif {!! Former::close() !!} @stop