New-OMIS/Modules/User/resources/views/role/index.blade.php

63 lines
2.7 KiB
PHP
Raw Normal View History

2024-04-07 07:28:58 +00:00
@extends('layouts.app')
@section('content')
<div class="page-content">
<div class="container-fluid">
<div class="row">
<div class="col-lg-12">
<div class="card">
2024-04-09 12:15:26 +00:00
<div class="card-header align-items-center d-flex">
<h5 class="card-title flex-grow-1 mb-0">Role Lists</h5>
<div class="flex-shrink-0">
<a href="{{ route('role.create') }}" class="btn btn-success waves-effect waves-light"><i
class="ri-add-fill me-1 align-bottom"></i> Create Role</a>
</div>
2024-04-07 07:28:58 +00:00
</div>
2024-04-09 12:15:26 +00:00
2024-04-07 07:28:58 +00:00
<div class="card-body">
<div class="table-responsive">
<table id="buttons-datatables" class="display table-sm table-bordered table" style="width:100%">
<thead class="">
<tr>
2024-04-07 12:14:05 +00:00
<th class="tb-col"><span class="overline-title">S.N</span></th>
<th class="tb-col"><span class="overline-title">Name</span></th>
2024-04-09 12:15:26 +00:00
<th class="tb-col"><span class="overline-title">Guard</span></th>
2024-04-07 12:14:05 +00:00
<th class="tb-col" data-sortable="false"><span class="overline-title">Action</span>
2024-04-07 07:28:58 +00:00
</th>
</tr>
</thead>
<tbody>
2024-04-09 12:15:26 +00:00
@foreach ($roles as $index => $role)
<tr>
2024-04-07 12:14:05 +00:00
<td class="tb-col">{{ $index + 1 }}</td>
2024-04-09 12:15:26 +00:00
<td class="tb-col">{{ $role->name }}</td>
<td class="tb-col">{{ $role->guard_name }}</td>
2024-04-07 07:28:58 +00:00
<td class="tb-col">
<div class="hstack flex-wrap gap-3">
2024-04-09 12:15:26 +00:00
<a href="javascript:void(0);" class="link-info fs-15 view-item-btn" data-bs-toggle="modal"
2024-04-07 07:28:58 +00:00
data-bs-target="#viewModal">
<i class="ri-eye-line"></i>
</a>
2024-04-09 12:15:26 +00:00
<a href="{{ route('role.edit', $role->id) }}" class="link-success fs-15 edit-item-btn"><i
2024-04-07 07:28:58 +00:00
class="ri-edit-2-line"></i></a>
2024-04-09 12:15:26 +00:00
<a href="javascript:void(0);" data-link="{{ route('role.destroy', $role->id) }}"
data-id="{{ $role->id }}" class="link-danger fs-15 remove-item-btn"><i
2024-04-07 07:28:58 +00:00
class="ri-delete-bin-line"></i></a>
</div>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
2024-04-09 12:15:26 +00:00
@include('user::partials.user.view')
2024-04-07 07:28:58 +00:00
@endsection