69 lines
2.2 KiB
PHP
69 lines
2.2 KiB
PHP
@extends('admin.layouts.master')
|
|
|
|
@section('pageTitle', 'Manage Permissions')
|
|
@section('content')
|
|
|
|
|
|
<div class="page-header">
|
|
<h1 class="page-title">Manage Permissions</h1>
|
|
<ol class="breadcrumb">
|
|
<li class="breadcrumb-item"><a href="{{ route('dashboard') }}">Dashboard</a></li>
|
|
<li class="breadcrumb-item active">Manage Permissions</li>
|
|
</ol>
|
|
<div class="page-header-actions">
|
|
<a class="btn btn-dark" href="{{ route('add-permission') }}">
|
|
<i class="icon wb-plus" aria-hidden="true"></i>
|
|
<span class="hidden-sm-down">Creat Permission</span>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div class="page-content">
|
|
<div class="panel">
|
|
<div class="panel-body">
|
|
<table class="table table-hover dataTable table-striped w-full" data-plugin="dataTable">
|
|
<thead>
|
|
<tr>
|
|
<th>#</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
<th>Action</th>
|
|
</tr>
|
|
</thead>
|
|
<tfoot>
|
|
<tr>
|
|
<th>#</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
<th>Action</th>
|
|
</tr>
|
|
</tfoot>
|
|
<tbody>
|
|
@if (!empty($permissions))
|
|
@foreach($permissions as $key=> $permission)
|
|
<tr>
|
|
<td>{{ $key+1 }}</td>
|
|
<td>{{ $permission->name }}</th>
|
|
<td>{{ $permission->description }}</td>
|
|
<td>
|
|
<a class="btn btn-sm btn-icon btn-default btn-outline btn-round" href="{{ route('edit-permission', base64_encode($permission->id)) }}" data-toggle="tooltip" data-original-title="Edit"><i class="icon wb-edit" aria-hidden="true"></i></a>
|
|
|
|
<a class="btn btn-sm btn-icon btn-default btn-outline btn-round" onclick="confirm('Are you sure you want to delete this record? All the related data will be deleted also.') ? '' : event.preventDefault();" href="{{ route('delete-permission', base64_encode($permission->id)) }}" data-toggle="tooltip" data-original-title="Delete"><i class="icon wb-trash" aria-hidden="true"></i></a>
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
@else
|
|
<tr>
|
|
<td colspan="100%" class="text-center">No record found</td>
|
|
</tr>
|
|
@endif
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
@endsection
|