        <main class="main">
            <!-- Breadcrumb -->
           <?=$this->view(sett('web_view_dir').'/admin/breadcrumb', $bc,true)?>            
       <div class="container-fluid">
                <div class="animated fadeIn">
<div class="container-fluid">

<div class="row row-equal">
                        
    <div class="col-md-6">
         <div class="card">
            <div class="card-header">
                    
				<strong><?= $user["user_ism"]?></strong>
				<?php if(is_right("users")):?>
					<div class='btn-group pull-right'>
						<a class="btn btn-info  btn-sm" href="<?=site_url("admin/users/home/edit/$user[id]")?>">
							<i class="fa fa-edit "></i>
						</a>
						<a class="btn btn-danger  btn-sm" onclick="return confirm('هل تريد الحذف حقا؟')"  href="<?=site_url("admin/users/home/del/$user[id]")?>">
							<i class="fa fa-trash-o "></i>
						</a>
					
					</div>
				<?php endif ?>
                        
            </div>
            <div class="card-block">
				  <ul class="list-group list-group-flush">
					<li class="list-group-item">الرقم : <?=$user['id']?> </li>
					<li class="list-group-item">اسم المستخدم : <?=$user['user_name']?> </li>
					<li class="list-group-item">الاسم الكامل : <?=$user['user_ism']?> </li>
				</ul>
			</div>
		</div>
	</div>
	<!--/col-->
	<?php if(is_right("users")):?>
	<div class="col-md-6">
		<div class="card">
			<div class="card-header">
				الصلاحيات
			</div>
			
			<div class="card-block">
			<?=is(isset($rights_update),msg("تم تحديث الصلاحيات بنجاح!"))?>
				  <ul class="list-group list-group-flush ">
				  
			
			<?php $rights=dbRows("*","userrights");
			echo form_open();			
			foreach ($rights as $r):?>
				<li class="list-group-item"><?=$r["Name"]?>
					<label class="switch switch-default switch-pill switch-primary pull-right">
					<input type="checkbox" name="URN[]" value="<?=$r["URN"]?>" class="switch-input"   <?= is(in_array($r["Code"],$user['rights']),'checked=""')?>>
					<span class="switch-label"></span>
					<span class="switch-handle"></span>
				</label>

				</li>
			
			<?php endforeach;?>
<br>			<center>
			<?=form_submit('urn_submit', "حفظ",'class="btn btn-primary"')?>		
			</center>
			<?= form_close()?>			
			
			
			
			
				  
					
				
				</ul>				
				
			</div>
		</div>
	</div>
	<!--/col-->
<?php endif ?>
                      
                       
                    </div>
               
                </div>
            </div>
                 <!-- /.conainer-fluid -->
        </main>
