WordPress

Coming Soon

revealability

File "5165c1bdc36e24747cf4dc6a8f26f7dd9c6f0f69.php"

Full Path: /home/karnava/public_html/center.karnavati.in/storage/framework/views/5165c1bdc36e24747cf4dc6a8f26f7dd9c6f0f69.php
File size: 4.13 KB
MIME-type: text/html
Charset: utf-8

 	
<?php $__env->startSection('title','View Roles'); ?>
<?php $__env->startSection('main_container'); ?>
      <!-- partial -->
      <div class="main-panel">
        <div class="content-wrapper">
          <div class="page-header">
            <h3 class="page-title">
              Js-grid
            </h3>
            <nav aria-label="breadcrumb">
              <ol class="breadcrumb">
                <li class="breadcrumb-item"><a href="#">Home</a></li>
                <li class="breadcrumb-item active" aria-current="page">Roles</li>
              </ol>
            </nav>
          </div>
          
          <div class="row grid-margin">
            <div class="col-12">
              <div class="card">
                <div class="card-body">
                  <h4 class="card-title">View Roles</h4>
                  <a href="<?php echo e(route('roles.create')); ?>" class="btn btn-primary btn-block-sm" >Add Roles</a><br>
                 <div class="col-lg-12 grid-margin stretch-card">
                    <div class="card">
                      <div class="card-body">
                        <h4 class="card-title">Striped Table</h4>
                      
                        <div class="table-responsive">
                          <table class="table table-striped">
                            <thead>
                              <tr>
                                <th>No.</th>
                                <th>Name</th>
                                <th>Actions</th>
                              </tr>
                            </thead>
                            <tbody>
                                <?php if(!$roles ->isEmpty()): ?>
                                <?php $__currentLoopData = $roles; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $role): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                              <tr>
                                <th scope="row"><?php echo $role->id?></th>
                                <td><?php echo $role->name?></td>
                                <td class="text-left">
                                  <div class="actions">
                                    <a class="btn btn-sm bg-success-light"  href="<?php echo e(route('roles.show', $role->id)); ?>">
                                      <i class="fa fa-edit" style="font-size: 2em;"></i> 
                                    </a>
                                    
                                    <?php if($role->name == 'Admin'): ?>
                                    <?php else: ?>
                                    <a  href="javascript:void(0)" data-delete_url="<?php echo e(route('roles.destroy', $role->id)); ?>"   class="btnDel btn btn-sm bg-danger-light">

                                      <i class="fa fa-trash" style="font-size: 2em;"></i> 

                                    </a>
                                    <?php endif; ?>
                                  </div>
                                </td>
                                
                              </tr>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>  
                                <?php else: ?>
                                  <p class="text-danger mt-2" style="padding-left:450px;">No Roles Available</p>
                                <?php endif; ?>
                            
                              
                            </tbody>
                          </table>
                              <?php echo e($roles->links()); ?>

                        </div>
                      </div>
                    </div>
			            </div>
                </div>
				      </div>
            </div>

          </div>
            
        <!-- content-wrapper ends -->
       <?php $__env->stopSection(); ?>
<?php echo $__env->make('Admin.Layout.main_layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\iimtlms\resources\views/Admin/manage_role.blade.php ENDPATH**/ ?>