Heera/Modules/User/resources/views/permissions/index.blade.php

52 lines
2.2 KiB
PHP
Raw Permalink Normal View History

2024-05-16 03:46:08 +00:00
@extends('layouts.app')
@section('content')
<div class="page-content">
<div class="container-fluid">
<!-- start page title -->
@include('layouts.partials.breadcrumb', ['title' => $title])
<!-- end page title -->
<div class="card">
<div class="card-header align-items-center d-flex">
<h5 class="card-title flex-grow-1 mb-0">{{ $title }}</h5>
<div class="flex-shrink-0">
<a href="{{ route('permission.generatePermissionFromRoutes') }}"
class="btn btn-success waves-effect waves-light"><i
class="ri-add-fill me-1 align-bottom"></i>Generate Permissions</a>
</div>
</div>
<div class="card-body">
<table id="model-datatables" class="display table table-bordered dt-responsive" style="width:100%">
<thead>
<tr>
<th>S.N</th>
<th>Name</th>
<th>Action</th>
</tr>
</thead>
<tbody>
@foreach ($permissionLists as $index => $item)
<tr>
<td class="tb-col">{{ $index + 1 }}</td>
<td class="tb-col">{{ $item->name }}</td>
<td class="tb-col">
<a href="javascript:void(0);"
data-link="{{ route('permission.destroy', $item->id) }}"
data-id="{{ $item->id }}" class="link-danger fs-15 remove-item-btn"><i
class="ri-delete-bin-line"></i></a>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>
<x-data-table-script />
@endsection