@extends('header') @section('content') @parent {!! Former::open_for_files()->addClass('warn-on-exit')->rules(array( 'first_name' => 'required', 'last_name' => 'required', 'email' => 'email|required', 'phone' => $user->google_2fa_secret ? '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) }} {{ Former::populateField('dark_mode', intval($user->dark_mode)) }} {{ Former::populateField('enable_two_factor', $user->google_2fa_secret ? 1 : 0) }} @if (Request::has('affiliate')) {{ Former::populateField('referral_code', true) }} @endif @if (Utils::isAdmin()) @include('accounts.nav', ['selected' => ACCOUNT_USER_DETAILS]) @endif