@extends('accounts.nav') @section('content') @parent {{ Former::open()->addClass('col-md-8 col-md-offset-2') }} {{ Former::populate($account) }} {{ Former::populateField('notify_sent', Auth::user()->notify_sent) }} {{ Former::populateField('notify_viewed', Auth::user()->notify_viewed) }} {{ Former::populateField('notify_paid', Auth::user()->notify_paid) }} {{ Former::legend('Payment Gateway') }} @if ($accountGateway) {{ Former::populateField('gateway_id', $accountGateway->gateway_id) }} @foreach ($accountGateway->fields as $field => $junk) {{ Former::populateField($accountGateway->gateway_id.'_'.$field, $config->$field) }} @endforeach @endif {{ Former::select('gateway_id')->label('Provider')->addOption('', '')->fromQuery($gateways, 'name', 'id')->onchange('setFieldsShown()'); }} @foreach ($gateways as $gateway)
@endforeach {{ Former::legend('Date and Time') }} {{ Former::select('timezone_id')->addOption('','')->label('Timezone') ->fromQuery($timezones, 'location', 'id')->select($account->timezone_id) }} {{ Former::select('date_format_id')->addOption('','')->label('Date Format') ->fromQuery($dateFormats, 'label', 'id')->select($account->date_format_id) }} {{ Former::select('datetime_format_id')->addOption('','')->label('Date/Time Format') ->fromQuery($datetimeFormats, 'label', 'id')->select($account->datetime_format_id) }} {{ Former::legend('Notifications') }} {{ Former::checkbox('notify_sent')->label(' ')->text('Email me when an invoice is sent') }} {{ Former::checkbox('notify_viewed')->label(' ')->text('Email me when an invoice is viewed') }} {{ Former::checkbox('notify_paid')->label(' ')->text('Email me when an invoice is paid') }} {{ Former::legend('Invoices') }} {{ Former::textarea('invoice_terms') }} {{ Former::actions( Button::lg_primary_submit('Save') ) }} {{ Former::close() }} @stop