{{ (@$user) ? 'Edit Admin' : 'Add Admin' }}
{{ Form::text('username',@$user->username, ['id' => 'username', 'class' => 'form-control', ]) }}
@if ($errors->has('username'))
{{ $errors->first('username') }}
@endif
{{ Form::text('email',@$user->email, ['id' => 'email', 'class' => 'form-control', ]) }}
@if ($errors->has('email'))
{{ $errors->first('email') }}
@endif
{{ Form::text('referred_by',@$user->referred_by, ['id' => 'referred_by', 'class' => 'form-control', ]) }}
@if ($errors->has('referred_by'))
{{ $errors->first('referred_by') }}
@endif
@if ($errors->has('client_code'))
{{ $errors->first('client_code') }}
@endif
@if ($errors->has('address'))
{{ $errors->first('address') }}
@endif
@if ($errors->has('contact_no'))
{{ $errors->first('contact_no') }}
@endif
@if ($errors->has('password'))
{{ $errors->first('password') }}
@endif
@if ($errors->has('confirm_password'))
{{ $errors->first('confirm_password') }}
@endif
{{ Form::select( 'type', [''=>'', '1'=>'Full', '2'=>'Limited', '3'=>'Demo'], '', [ "class" => "form-control select2", ] ) }}
@if ($errors->has('type'))
{{ $errors->first('type') }}
@endif