@extends('panel.layouts.superadmin.app') @section('page-title') {{ LaraCore::setting('html_prefix') }} {{ (LaraCore::setting('html_prefix') != '') ? '|' : '' }} {{ (@$user) ? 'Edit Admin' : 'Add Admin' }} @stop @section('content')

{{ (@$user) ? 'Edit Admin' : 'Add Admin' }}

{{ Form::open(['method'=> 'POST', 'url' => route('update.superadmin'), 'enctype' => "multipart/form-data"]) }} {{ Form::hidden('client_code', @$user->client_code) }} {{ Form::hidden('admin_id', @$user->id) }}
{{ Form::text('name',@$user->name, ['id' => 'name', 'class' => 'form-control', ]) }} @if ($errors->has('name')) {{ $errors->first('namename') }} @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
{{--
{{ Form::text('client_code',@$user->client_code, ['id' => 'client_code', 'class' => 'form-control', ]) }} @if ($errors->has('client_code')) {{ $errors->first('client_code') }} @endif
--}}
{{ Form::text('address',@$user->address, ['id' => 'address', 'class' => 'form-control', ]) }} @if ($errors->has('address')) {{ $errors->first('address') }} @endif
{{ Form::text('contact_no',@$user->contact_no, ['id' => 'contact_no', 'class' => 'form-control', ]) }} @if ($errors->has('contact_no')) {{ $errors->first('contact_no') }} @endif
{{ Form::select( 'type', [''=>'', '1'=>'Full', '2'=>'Limited', '3'=>'Demo'], @$user->type, [ "class" => "form-control select2", ] ) }} @if ($errors->has('type')) {{ $errors->first('type') }} @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'], @$user->type, [ "class" => "form-control select2", ] ) }} @if ($errors->has('type')) {{ $errors->first('type') }} @endif
--}}
Cancel
{{ Form::close() }}
@stop