@extends('header') @section('content') @parent {!! Former::open_for_files()->addClass('warn-on-exit')->rules(array( 'email' => 'email|required' )) !!} {{ Former::populate($account) }} {{ Former::populateField('first_name', $user->first_name) }} {{ Former::populateField('last_name', $user->last_name) }} {{ Former::populateField('email', $user->email) }} {{ Former::populateField('phone', $user->phone) }} @if (Utils::isNinjaDev()) {{ Former::populateField('dark_mode', intval($user->dark_mode)) }} @endif @if (Input::has('affiliate')) {{ Former::populateField('referral_code', true) }} @endif @include('accounts.nav', ['selected' => ACCOUNT_USER_DETAILS])

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

{!! Former::text('first_name') !!} {!! Former::text('last_name') !!} {!! Former::text('email') !!} {!! Former::text('phone') !!}
@if (Utils::isOAuthEnabled()) {!! Former::plaintext('oneclick_login')->value( $user->oauth_provider_id ? $oauthProviderName . ' - ' . link_to('#', trans('texts.disable'), ['onclick' => 'disableSocialLogin()']) : DropdownButton::primary(trans('texts.enable'))->withContents($oauthLoginUrls)->small() )->help('oneclick_login_help') !!} @endif @if (Utils::isNinja()) @if ($user->referral_code) {{ Former::setOption('capitalize_translations', false) }} {!! Former::plaintext('referral_code') ->help($referralCounts['free'] . ' ' . trans('texts.free') . ' | ' . $referralCounts['pro'] . ' ' . trans('texts.pro') . '' . Icon::create('question-sign') . ' ') ->value(NINJA_APP_URL . '/invoice_now?rc=' . $user->referral_code) !!} @else {!! Former::checkbox('referral_code') ->help(trans('texts.referral_code_help')) ->text(trans('texts.enable') . ' ' . Icon::create('question-sign') . '') !!} @endif @endif @if (false && Utils::isNinjaDev()) {!! Former::checkbox('dark_mode')->text(trans('texts.dark_mode_help')) !!} @endif
@if (Utils::isNinja()) @if (Auth::user()->confirmed) {!! Button::primary(trans('texts.change_password')) ->appendIcon(Icon::create('lock')) ->large()->withAttributes(['onclick'=>'showChangePassword()']) !!} @elseif (Auth::user()->registered) {!! Button::primary(trans('texts.resend_confirmation')) ->appendIcon(Icon::create('send')) ->asLinkTo(URL::to('/resend_confirmation'))->large() !!} @endif @endif {!! Button::success(trans('texts.save')) ->submit()->large() ->appendIcon(Icon::create('floppy-disk')) !!}
{!! Former::close() !!} @stop @section('onReady') $('#first_name').focus(); @stop