{!! Form::label('first_name', 'First Name') !!} {!! Form::text('first_name', old('first_name'), ['class' => 'form-control']) !!} @if ($errors->has('first_name')) {{ $errors->first('first_name') }} @endif
{!! Form::label('last_name', 'Last Name') !!} {!! Form::text('last_name', old('last_name'), ['class' => 'form-control']) !!} @if ($errors->has('last_name')) {{ $errors->first('last_name') }} @endif
{!! Form::label('email', 'Email') !!} {!! Form::text('email', old('email'), ['class' => 'form-control', isset($record) ? 'readonly' : '' ]) !!} @if ($errors->has('email')) {{ $errors->first('email') }} @endif
{!! Form::label('username', 'Username') !!} {!! Form::text('username', old('username'), ['class' => 'form-control', isset($record) ? 'readonly' : '' ]) !!} @if ($errors->has('username')) {{ $errors->first('username') }} @endif
{!! Form::label('phone', 'Mobile Number') !!} {!! Form::text('phone', isset($record) ? (empty(old('phone')) ? $record->phone_formatted : old('phone')) : old('phone'), ['class' => 'form-control']) !!} @if ($errors->has('phone')) {{ $errors->first('phone') }} @endif
{!! Form::label('dob', 'Date Of Birth') !!} {!! Form::text('dob', isset($record) ? (empty(old('dob')) ? $record->dob_auto : old('dob')) : old('dob'), ['class' => 'datepicker form-control', 'readonly']) !!} @if ($errors->has('dob')) {{ $errors->first('dob') }} @endif
{!! Form::label('catchphrase', 'Catchphrase') !!} {!! Form::select('catchphrase', $catchPhrases, old('catchphrase'), ['class' => 'select2 form-control']) !!} @if ($errors->has('catchphrase')) {{ $errors->first('catchphrase') }} @endif
{!! Form::label('education', 'Education') !!} {!! Form::select('education', $education, old('education'), ['class' => 'select2 form-control']) !!} @if ($errors->has('education')) {{ $errors->first('education') }} @endif
{!! Form::label('gender', 'Gender') !!} {!! Form::select('gender', $genders, old('gender'), ['class' => 'select2 form-control']) !!} @if ($errors->has('gender')) {{ $errors->first('gender') }} @endif
{{--Date Configuration--}}
Date Configuration
{!! Form::label('date_gender', 'Gender') !!} {!! Form::select('date_gender', [], old('date_gender'), ['class' => 'select2 form-control']) !!} @if ($errors->has('date_gender')) {{ $errors->first('date_gender') }} @endif
{!! Form::label('date_education', 'Education') !!} {!! Form::select('date_education', $configEdu, $record->date_education, ['class' => 'select2 form-control']) !!} @if ($errors->has('date_education')) {{ $errors->first('date_education') }} @endif
{!! Form::label('date_limit', 'Per Day Request Limit') !!} {!! Form::select('date_limit', $limit, $record->date_limit, ['class' => 'select2 form-control']) !!} @if ($errors->has('date_limit')) {{ $errors->first('date_limit') }} @endif
{!! Form::label('date_invite', 'Invite Time') !!} {!! Form::select('date_invite', $invite, $record->date_invite, ['class' => 'select2 form-control']) !!} @if ($errors->has('date_invite')) {{ $errors->first('date_invite') }} @endif
{!! Form::label('date_age', 'Age Limit') !!} {!! Form::select('date_age', $age, $record->date_age, ['class' => 'select2 form-control']) !!} @if ($errors->has('date_age')) {{ $errors->first('date_age') }} @endif
{{--Friend Configuration--}}
Friend Configuration
{!! Form::label('friend_gender', 'Friend Gender') !!} {!! Form::select('friend_gender', $friendGender, $record->friend_gender , ['class' => 'select2 form-control']) !!} @if ($errors->has('friend_gender')) {{ $errors->first('friend_gender') }} @endif
{!! Form::label('friend_education', 'Education') !!} {!! Form::select('friend_education', $configEdu, $record->friend_education, ['class' => 'select2 form-control']) !!} @if ($errors->has('friend_education')) {{ $errors->first('friend_education') }} @endif
{!! Form::label('friend_limit', 'Per Day Request Limit') !!} {!! Form::select('friend_limit', $limit, $record->friend_limit, ['class' => 'select2 form-control']) !!} @if ($errors->has('friend_limit')) {{ $errors->first('friend_limit') }} @endif
{!! Form::label('friend_invite', 'Invite Time') !!} {!! Form::select('friend_invite', $invite, $record->friend_invite, ['class' => 'select2 form-control']) !!} @if ($errors->has('friend_invite')) {{ $errors->first('friend_invite') }} @endif
{!! Form::label('friend_age', 'Age Limit') !!} {!! Form::select('friend_age', $age, $record->friend_age, ['class' => 'select2 form-control']) !!} @if ($errors->has('friend_age')) {{ $errors->first('friend_age') }} @endif

{!! Form::label('profile_picture', 'Profile Picture') !!} {!! Form::file('profile_picture', ['onchange' => 'loadFile(event, "pro_image")', "accept" => "image/png, image/jpeg"]) !!} @if ($errors->has('profile_picture')) {{ $errors->first('profile_picture') }} @endif
@if(isset($record))
{!! Html::image($record->profile_picture_auto, null, ['class' => 'img-responsive pad', 'id' => 'pro_image', 'style' => 'max-width: 300px;max-height: 200px']) !!}
@endif
{!! Form::submit('Save', ['class' => 'btn btn-primary btn-flat']) !!} Cancel
@section('inlineJS') @endsection