%PDF- %PDF-
Direktori : /var/www/html/car_rent/resources/views/admin/ |
Current File : /var/www/html/car_rent/resources/views/admin/roles.php |
<?php echo View::make('partials.header') ?> <br> <div class="row"> <h2 class="col-md-10 pull-left">Roles List</h2> <br> <a href="/<?php echo $resourceName; ?>/create" class="btn btn-success pull-right">Create New</a> </div> <br> <table class="table table-striped table-hover"> <thead> <tr> <th>#</th> <th>Role Name</th> <th>Description</th> <th> </th> </tr> </thead> <tbody> <?php $recordsCount = count($records); for($i=0; $i<$recordsCount; $i++) { ?> <tr> <th scope="row"><?php echo $i+1; ?></th> <td><a href="<?php echo "/".$resourceName."/".$records[$i]->id."/edit"; ?>"><?php echo $records[$i]->role_name; ?></a></td> <td><?php echo $records[$i]->description; ?></td> <td><button class="btn btn-danger btn-sm pull-right" onclick="Utils.confirmDeletion('<?php echo $resourceName."','".$records[$i]->id."','".$records[$i]->role_name; ?>');"> <span class="glyphicon glyphicon-trash"></span> </button> </td> </tr> <?php } ?> </tbody> </table> <?php echo View::make('partials.footer') ?>