<!-- BEGIN CONTENT -->
<div class="page-content-wrapper setting">
    <div class="page-content">
        <!-- BEGIN PAGE HEADER-->
        <h3 class="page-title">
            {$shcontrollname}
        </h3>
        <div class="page-bar">
            <ul class="page-breadcrumb">
                {$breadcrumbs}
            </ul>
        </div>
        <!-- END PAGE HEADER-->
        <!-- BEGIN PAGE CONTENT-->
        <div class="row">
            <div class="col-md-12">
                <div class="portlet light bg-inverse">
                    <div class="portlet-title">
                        <div class="caption">
                            <i class="icon-equalizer font-red-sunglo"></i>
                            <span class="caption-subject font-red-sunglo bold uppercase">Add new in {$shcontrollname}</span>
                        </div>
                        <div class="actions">
                            <a class="btn default btn-xs blue tooltips" href="{$hosturl}/controllers/{$controllname}.php?ac=show" data-container="body" data-placement="top" data-original-title="Show">
                                Show items
                            </a>
                        </div>
                    </div>
                    <div class="portlet-body form">
                        <!-- BEGIN FORM-->
                        <form action="{$hosturl}/controllers/{$controllname}.php?ac=addit" method="post" class="" 
                              id="member_form" enctype="multipart/form-data">
                            <div class="form-body">
                                <div class="alert alert-danger display-hide">
                                    <button class="close" data-close="alert"></button>
                                    You have errors, see it again.
                                </div>
                                <div class="alert alert-success display-hide">
                                    <button class="close" data-close="alert"></button>
                                    You are good, GO ON.
                                </div>

                                <h3 class="form-section">My info</h3>

                                <div class="form-group form-md-line-input has-info">
                                    <div>
                                        <input type="text" class="form-control" placeholder="My name" name="name" required="">
                                        <label for="form_control_1">My name</label>
                                    </div>
                                </div>

                                <div class="form-group form-md-line-input has-info">
                                    <div>
                                        <input type="text" class="form-control" placeholder="Email Address" name="email" id="email">
                                        <label for="form_control_1">Email Address</label>
                                    </div>
                                    <div class="alert alert-warning display-hide" id="showerroremail">
                                        <button class="close" data-close="alert"></button>
                                        Use another one , this used before with other user.
                                    </div>
                                </div>

                                <div class="row">

                                    <div class="form-group form-md-line-input has-info col-md-4">
                                        <div>
                                            <input type="text" class="form-control" placeholder="" name="license_no" >
                                            <label for="form_control_1">رقم الترخيص  </label>
                                        </div>
                                    </div>

                                    <div class="form-group form-md-line-input has-info col-md-4">
                                        <div>
                                            <input type="text" class="form-control" placeholder="" name="register_no" >
                                            <label for="form_control_1"> رقم القيد</label>
                                        </div>
                                    </div>

                                    <div class="form-group form-md-line-input has-info col-md-4">
                                        <div>
                                            <input type="text" class="form-control" placeholder="WhatsApp No"   
                                                   id="whatsapp_no" name="whatsapp_no" >
                                            <label for="whatsapp_no"> WhatsApp No  </label>
                                        </div>
                                    </div>
                                </div>
                            </div>

                            <div class="col-md-12">
                                <div class="col-md-4">
                                    <div class="form-group form-md-line-input has-info">
                                        <div class="input-group">
                                            <span class="input-group-addon">
                                                <i class="fa fa-users"></i>
                                            </span>
                                            <select class="form-control input-xlarge select2me input-sm select2-offscreen noborder" required="" id="role"  data-placeholder="Choose one" name="role">
                                                <option value=""></option>
                                                {foreach $roles as $single}
                                                <option value="{$single->id}">{$single->name}</option>
                                                {/foreach}
                                            </select>
                                            <label for="form_control_1">Roles</label>
                                        </div>
                                    </div>
                                </div>

                                <div class="col-md-4">
                                    <div class="form-group form-md-line-input has-info">
                                        <div class="input-group">
                                            <span class="input-group-addon">
                                                <i class="fa fa-building"></i>
                                            </span>
                                            <select class="form-control input-xlarge select2me input-sm select2-offscreen noborder" multiple data-placeholder="Choose one" name="branch_id[]">
                                                <option value=""></option>
                                                {foreach $branches as $single}
                                                <option value="{$single->id}">{$single->name}</option>
                                                {/foreach}
                                            </select>
                                            <label for="form_control_1">Branches</label>
                                        </div>
                                    </div>
                                </div>

                                <div class="col-md-4" style="display: none;" id="specialDiv" >
                                    <div class="form-group form-md-line-input has-info">
                                        <div class="input-group">
                                            <span class="input-group-addon">
                                                <i class="fa fa-users"></i>
                                            </span>
                                            <select class="form-control input-xlarge select2me input-sm select2-offscreen noborder"  id="special" data-placeholder="Choose one" name="special">
                                                <option value=""></option>
                                            </select>
                                            <label for="form_control_1">Specialization </label>
                                        </div>
                                    </div>
                                </div>

                                <div class="col-md-4" style="display: none;" id="positionDiv" >
                                    <div class="form-group form-md-line-input has-info">
                                        <div class="input-group">
                                            <span class="input-group-addon">
                                                <i class="fa fa-users"></i>
                                            </span>
                                            <select class="form-control input-xlarge select2me input-sm select2-offscreen noborder"  id="position" data-placeholder="Choose one" name="position">
                                                <option value=""></option>
                                            </select>
                                            <label for="form_control_1">Position</label>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-4" {if $erpdb == ''} style="display: none;" {/if} id="erpSaveDiv" >
                                    <div class="form-group form-md-line-input has-info">
                                        <div>
                                            <input type="hidden" id="erpDBSave" name="erpDBSave" class="form-control input-xlarge input-sm noborder" data-placeholder="Select save ...">
                                            <input type="hidden" name="erpdbsavename" id="erpdbsavename" value="">
                                            <label for="form_control_1">ERP Save</label>
                                        </div>
                                    </div>
                                </div>
                            </div>

                            <div class="col-md-12">

                                <div class="form-group form-md-line-input has-info col-md-7">
                                    <div class="input-group">
                                        <span class="input-group-addon">
                                            <i class="fa fa-users"></i>
                                        </span>
                                        <select multiple class="form-control input-xlarge select2me input-sm select2-offscreen noborder"   
                                                data-placeholder="Choose" name="related_dr[]">
                                            <option value=""></option>
                                            {foreach $drs as $single}
                                            <option value="{$single.user_id}">{$single.name}</option>
                                            {/foreach}
                                        </select>
                                        <label for="form_control_1">Can Add Visits ToDoctors </label>
                                    </div>
                                </div>

                                <label class="wds10  fleft " style="text-align: center !important; margin-top: 20px;">OR  </label>

                                <div class="form-group form-md-line-input has-info col-md-3">
                                    <div class="input-group">
                                        <input type="checkbox" class="form-control" name="related_dr_all" value="1" >
                                        <label for="form_control_1">To All Doctors  </label>
                                    </div>
                                </div>

                            </div>


                            <div class="col-md-12">

                                <div class="form-group form-md-line-input has-info col-md-7">
                                    <div class="input-group">
                                        <span class="input-group-addon">
                                            <i class="fa fa-users"></i>
                                        </span>
                                        <select multiple class="form-control input-xlarge select2me input-sm select2-offscreen noborder"   
                                                data-placeholder="Choose" name="related_branches[]">
                                            <option value=""></option>
                                            {foreach $branches as $single}
                                            <option value="{$single.id}">{$single.name}</option>
                                            {/foreach}
                                        </select>
                                        <label for="form_control_1">Can Show Data of Branches </label>
                                    </div>
                                </div>

                                <label class="wds10  fleft " style="text-align: center !important; margin-top: 20px;">OR  </label>

                                <div class="form-group form-md-line-input has-info col-md-3">
                                    <div class="input-group">
                                        <input type="checkbox" class="form-control" name="related_branches_all" value="1" >
                                        <label for="form_control_1">All Branches  </label>
                                    </div>
                                </div>


                            </div>

                            <div class="row">

                                <div class="form-group form-md-line-input has-info col-md-6">
                                    <div class="input-group">
                                        <span class="input-group-addon">
                                            <i class="fa fa-location-arrow"></i>
                                        </span>
                                        <select multiple class="form-control input-xlarge select2me input-sm select2-offscreen noborder"   
                                                data-placeholder="Choose" name="original_sub_regions[]">
                                            <option value=""></option>
                                            {foreach $sub_regions as $single}
                                            <option value="{$single.id}">{$single.name}</option>
                                            {/foreach}
                                        </select>
                                        <label for="form_control_1">Original Sub  Regions </label>
                                    </div>
                                </div>

                                <div class="form-group form-md-line-input has-info col-md-6">
                                    <div class="input-group">
                                        <span class="input-group-addon">
                                            <i class="fa fa-location-arrow"></i>
                                        </span>
                                        <select multiple class="form-control input-xlarge select2me input-sm select2-offscreen noborder"   
                                                data-placeholder="Choose" name="alt_sub_regions[]">
                                            <option value=""></option>
                                            {foreach $sub_regions as $single}
                                            <option value="{$single.id}">{$single.name}</option>
                                            {/foreach}
                                        </select>
                                        <label for="form_control_1">Alternative  Sub  Regions </label>
                                    </div>
                                </div>
                            </div>



                            <div class="row">
                                <div class="col-md-4">
                                    <div class="form-group form-md-line-input has-info">
                                        <div class="input-group">
                                            <input type="checkbox" class="form-control" name="show_all_visits" value="1" >
                                            <label for="form_control_1">Show All Visits in index Page  </label>
                                        </div>
                                    </div>
                                </div>

                                <div class="col-md-4">
                                    <div class="form-group form-md-line-input has-info">
                                        <div class="input-group">
                                            <input type="checkbox" class="form-control" name="financial_user" value="1" >
                                            <label for="form_control_1">Show  in Financial  Search  </label>
                                        </div>
                                    </div>
                                </div>

                                <div class="col-md-4">
                                    <div class="form-group form-md-line-input has-info">
                                        <div class="input-group">
                                            <input type="checkbox" class="form-control" name="tanks_settings" value="1" >
                                            <label for="form_control_1">Show Tank Setting Btn in Embryos Lab Report </label>
                                        </div>
                                    </div>
                                </div>
                                <div id="loginInfoDiv">

                                    <h3 class="form-section">Login info</h3>
                                    <div class="form-group form-md-line-input has-info">
                                        <div>
                                            <input type="text" class="form-control" placeholder="Username" name="username" id="username" required="">
                                            <label for="form_control_1">Username</label>
                                        </div>
                                        <div class="alert alert-warning display-hide" id="showerrorusername">
                                            <button class="close" data-close="alert"></button>
                                            Use another one , this used before with other user.
                                        </div>
                                    </div>
                                    <div class="form-group form-md-line-input has-info">
                                        <div>
                                            <input type="password" class="form-control" placeholder="Password" name="password" id="password" required="">
                                            <label for="form_control_1">Password</label>
                                        </div>
                                    </div>
                                    <div class="form-group form-md-line-input has-info">
                                        <div>
                                            <input type="password" class="form-control" placeholder="Confirm password" id="confirmpassword"  name="confirmpassword"  required="">
                                            <label for="form_control_1">Confirm password</label>
                                        </div>
                                    </div>
                                </div>

                                {if $system_type == 2 }
                                <div id="accountInfoDiv" class="col-md-12">

                                    <h3 class="form-section">Accounting info</h3>
                                    <div class="form-group form-md-line-input has-info col-md-6">
                                        <div>
                                            <input type="text" class="form-control" placeholder="Hour price "
                                                   name="hour_price" id="hour_price" required="" value="0">
                                            <label for="hour_price">Hour price </label>
                                        </div>
                                    </div>
                                    
                                    
                                           <div class="form-group form-md-line-input has-info col-md-6">
                                        <div>
                                            <input type="text" class="form-control" placeholder="Visit Price Percent "
                                                   name="visit_percent" id="visit_percent" required="" value="0">
                                            <label for="visit_percent">Visit Price Percent (%) </label>
                                        </div>
                                    </div>
                                </div>

                                {else if $system_type == 3 }
                                <div id="accountInfoDiv" class="col-md-12">

                                    <h3 class="form-section">Accounting info</h3>
                                    <!--div class="form-group form-md-line-input has-info col-md-4">
                                        <div>
                                            <input type="text" class="form-control" placeholder="Hour price "
                                                   name="normal_per" id="normal_per" required="" value="0">
                                            <label for="normal_per">Normal  % </label>
                                        </div>
                                    </div-->

                                    <div class="form-group form-md-line-input has-info col-md-4">
                                        <div>
                                            <input type="text" class="form-control" placeholder="Hour price "
                                                   name="pulse_per" id="pulse_per" required="" value="0">
                                            <label for="pulse_per">Pulse  % </label>
                                        </div>
                                    </div>

                                    <div class="form-group form-md-line-input has-info col-md-4">
                                        <div>
                                            <input type="text" class="form-control" placeholder="Hour price "
                                                   name="session_per" id="session_per" required="" value="0">
                                            <label for="session_per">Session % </label>
                                        </div>
                                    </div>
                                </div>
                                {/if}

                                <div class="form-group form-md-line-input has-info col-md-6" >
                                    <label class="col-md-2" for="form_control_1">Image</label>
                                    <div class="col-md-10" style="margin-bottom: 2%;">
                                        <div class="fileinput fileinput-new" data-provides="fileinput">
                                            <div class="fileinput-preview thumbnail" data-trigger="fileinput" 
                                                 style="width: 200px; height: 150px;"> </div>
                                            <div>
                                                <span class="btn default btn-file">
                                                    <span class="fileinput-new"> Select image </span> 
                                                    <span class="fileinput-exists"> Change </span>
                                                    <input type="file" name="memberImage" id="memberImage" class=" form-control">
                                                </span>
                                                <a href="#" class="btn red fileinput-exists" data-dismiss="fileinput"> Remove </a>
                                            </div>
                                        </div>

                                    </div>
                                </div>


                                <div class="form-group form-md-line-input has-info col-md-6" >
                                    <label class="col-md-2" for="form_control_1">Signature</label>
                                    <div class="col-md-10" style="margin-bottom: 2%;">
                                        <div class="fileinput fileinput-new" data-provides="fileinput">
                                            <div class="fileinput-preview thumbnail" data-trigger="fileinput" 
                                                 style="width: 200px; height: 150px;"> </div>
                                            <div>
                                                <span class="btn default btn-file">
                                                    <span class="fileinput-new"> Select image </span> 
                                                    <span class="fileinput-exists"> Change </span>
                                                    <input type="file" name="signatureImage" id="signatureImage" class=" form-control">
                                                </span>
                                                <a href="#" class="btn red fileinput-exists" data-dismiss="fileinput"> Remove </a>
                                            </div>
                                        </div>

                                    </div>
                                </div>

                            </div>
                            <div class="form-actions">
                                <div class="row">
                                    <div class="col-md-offset-3 col-md-4">
                                        <button type="submit" class="btn green">Save</button>
                                        <button type="button" class="btn default rtnshow" data-controll="{$controllname}">Cancel</button>
                                    </div>
                                </div>
                            </div>
                        </form>
                        <!-- END FORM-->
                    </div>
                </div>
            </div>
        </div>
        <!-- END PAGE CONTENT-->
    </div>
</div>
<!-- END CONTENT -->