 
<?php $__env->startSection('content'); ?>
<?php Fun::lang()?>
<div class="title-page">
    <div class="page-bar"> 
        <ul class="page-breadcrumb"> 
            <li><a href="#"><i class="fa fa-dashboard"></i> Dashboard</a></li>
            <li><a href="#">Manage User</a></li>
            <li><a href="#">User</a></li>
            <li><a href="#">Create User</a></li>
        </ul>
    </div>
</div>

<div class="page">
    <div class="top-content">
        <div class="row">
            <div class="col-sm-12 col-xs-12">
                <div class="title-add">
                    <div class="pull-left">
                        <h3>Create User</h3>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <?php echo Form::open(array('route' => 'users.store','method'=>'POST','enctype'=>'multipart/form-data')); ?>

    <div class="row">
       
        <div class="form-group col-sm-6 col-xs-12">
            <label class="required">First Name</label>
            <?php echo Form::text('user_firstname', null, array('placeholder' => 'First Name','class' => 'form-control','required')); ?>

        </div>
        <div class="form-group col-sm-6 col-xs-12">
            <label class="required">Last Name</label>
            <?php echo Form::text('user_lastname', null, array('placeholder' => 'Last Name','class' => 'form-control','required')); ?>

        </div>
        <div class="form-group col-sm-6 col-xs-12">
            <label class="required">Gender</label>
            <select name="user_gender" id="" class="select2 form-control" required>
                <option value="Male">Male</option>
                <option value="Female">Female</option>
            </select>
        </div>
        <div class="form-group col-sm-6 col-xs-12">
                <label class="required">Date OF Birth</label>
                <?php echo Form::text('user_dob', null, array('placeholder' => 'Date Of Birth','class' => 'form-control date_picker','required')); ?>

        </div>
        <div class="form-group col-sm-6 col-xs-12">

            <label class="required">ID Card Number</label>
            <?php echo Form::text('user_cardid', null, array('placeholder' => '#########','class' => 'form-control','required')); ?>

        </div>
        <div class="form-group col-sm-6 col-xs-12">
                <label class="required">Phone Number</label>
                <!-- <?php echo Form::text('user_phone', null, array('placeholder' => 'Phone Number','class' => 'form-control number-only','required')); ?> -->
                <input type="text" class="form-control number-only" name="user_phone"
                                        data-inputmask="'mask': ['999-999-9999', '+099 99 99 9999[9]-9999']" data-mask placeholder="Phone Number"> 
        </div>
        <div class="form-group col-sm-6 col-xs-12">
                <label class="required">Reference</label>
                <?php echo Form::text('user_reference', null, array('placeholder' => 'Reference','class' => 'form-control','required')); ?>

        </div>
        <div class="form-group col-sm-6 col-xs-12">
                <label class="required">Position </label>
                <?php echo Form::select('position_id', $positions, null, ['class' => 'form-control select2','required']); ?> 
        </div>
        <div class="form-group col-sm-6 col-xs-12">
                <label class="required">Roles </label>
                <?php echo Form::select('roles[]', $roles,[], array('class' => 'form-control select2','required')); ?>

        </div>
        <div class="form-group col-sm-6 col-xs-12">
                <label class="required">Email</label>
                <?php echo Form::email('email', null, array('placeholder' => 'Email','class' => 'form-control','required')); ?>

        </div>
        <div class="form-group col-sm-6 col-xs-12">
                <label class="required">Password</label>
                <?php echo Form::password('password', array('placeholder' => 'Password','class' => 'form-control','required')); ?>

        </div>
        <div class="form-group col-sm-6 col-xs-12">
                <label class="required">Confirm Password</label>
                <?php echo Form::password('confirm_password', array('placeholder' => 'Password','class' => 'form-control','required')); ?>

        </div>
        <div class="form-group col-sm-12 col-xs-12">
            <label class="required">Address</label>
            <?php echo Form::textarea('address', null, array('placeholder' => 'Address','class' => 'form-control','rows'=>'2','required')); ?>

        </div>
        
        <div class="col-xs-4 col-sm-4 col-md-4 pull-right">
            <div class="imageupload panel panel-default">
                <img src="<?php echo e(asset('assets/images/default.png')); ?>" class="hide_img" width="100px">
                <div class="file-tab panel-body">
                    <label class="btn button_warning btn-file">
                        <span>Browse</span>
                        <input type="file" name="image">
                    </label>
                    <button type="button" class="btn button_danger">Remove</button>
                </div>  
            </div>    
        </div>

        <div class="col-sm-12 col-xs-12">
            <div class="form-group">
                <button type="submit" class="button_sm button_primary pull-right"><span class="fa fa-save"></span> Save</button>
                <button type="button"  onClick="javascript:history.go(-1)" class="button_warning button_sm pull-right">
                        <span class=" fa fa-arrow-circle-left"></span> Back</button>
            </div>
        </div>   
    </div>       
    <?php echo Form::close(); ?> 
</div>
<?php $__env->stopSection(); ?>



<?php $__env->startSection('js'); ?>
    <script type="text/javascript" src="<?php echo e(asset('assets/controller/location.js')); ?>"></script>
    
<?php $__env->stopSection(); ?>


<?php echo $__env->make('adminlte::page', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>