@extends('layouts.master_backend') @section('content') @php $flag=0; $heading=lang_trans('btn_add'); if(isset($data_row) && !empty($data_row)){ $flag=1; $heading=lang_trans('btn_update'); } @endphp

{{$heading}} {{lang_trans('txt_user')}}


@if($flag==1) {{ Form::model($data_row,array('url'=>route('save-user'),'id'=>"edit-user-form", 'class'=>"form-horizontal form-label-left")) }} {{Form::hidden('id',null)}} @else {{ Form::open(array('url'=>route('save-user'),'id'=>"add-user-form", 'class'=>"form-horizontal form-label-left")) }} @endif
{{ Form::select('role_id',$roles,null,['class'=>'form-control col-md-6 col-xs-12','placeholder'=>lang_trans('ph_select')]) }}
{{Form::text('name',null,['class'=>"form-control col-md-6 col-xs-12", "id"=>"name", "placeholder"=>lang_trans('ph_enter').lang_trans('txt_fullname')])}}
{{Form::email('email',null,['class'=>"form-control col-md-6 col-xs-12", "id"=>"email", "placeholder"=>lang_trans('ph_enter').lang_trans('txt_email')])}}
{{Form::text('mobile',null,['class'=>"form-control col-md-6 col-xs-12", "id"=>"mobile", "placeholder"=>lang_trans('ph_enter').lang_trans('txt_mobile_num')])}}
{{ Form::password('new_password',['class'=>'form-control col-md-6 col-xs-12',"id"=>'password','placeholder'=>lang_trans('ph_enter').lang_trans('txt_password')]) }}
@if($flag==0)
{{ Form::password('conf_password',['class'=>'form-control col-md-6 col-xs-12',"id"=>'conf_password','placeholder'=>lang_trans('ph_enter').lang_trans('txt_password_conf')]) }}
@endif
{{ Form::select('gender',config('constants.GENDER'),null,['class'=>'form-control col-md-6 col-xs-12','placeholder'=>lang_trans('ph_select')]) }}
{{Form::textarea('address',null,['class'=>"form-control col-md-6 col-xs-12", "id"=>"address", "placeholder"=>lang_trans('ph_enter').lang_trans('txt_address'),"rows"=>1])}}
{{ Form::select('status',config('constants.LIST_STATUS'),null,['class'=>'form-control','placeholder'=>lang_trans('ph_select')]) }}
{{Form::close()}}
@endsection