This commit is contained in:
Azfar Arsyad
2021-11-23 13:08:47 +08:00
parent 2ad8cbe355
commit fa2f83c99d
13 changed files with 16725 additions and 46 deletions
+1 -1
View File
@@ -11,7 +11,7 @@
},
"devDependencies": {
"axios": "^0.21",
"bootstrap": "^4.6.0",
"bootstrap": "^4.6.1",
"datatables.net-bs4": "^1.11.3",
"jquery": "^3.6",
"jquery-ui": "^1.13.0",
+16414 -7
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+250 -3
View File
File diff suppressed because one or more lines are too long
-9
View File
@@ -37,15 +37,6 @@
* ©2011-2017 SpryMedia Ltd - datatables.net/license
*/
/**
* @license
* Lodash <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/
/**!
* @fileOverview Kickass library to create and place poppers near their reference elements.
* @version 1.16.1
+1 -1
View File
File diff suppressed because one or more lines are too long
-1
View File
@@ -1 +0,0 @@
/* @import '~datatables.net-bs4/css/dataTables.bootstrap4.css'; */
+1 -1
View File
@@ -2,6 +2,6 @@ try {
window.Popper = require('popper.js').default;
window.$ = window.jQuery = require('jquery');
require('./bootstrap');
require('bootstrap');
require('datatables.net-bs4');
} catch (e) {}
+1 -1
View File
@@ -6,7 +6,7 @@
// Bootstrap
@import '~bootstrap/scss/bootstrap';
@import '~datatables.net-bs4/css/dataTables.bootstrap4.css';
// Font-Awesome
@import "~@fortawesome/fontawesome-free/scss/fontawesome";
+5
View File
@@ -222,6 +222,11 @@
width: 100%;
}
.hovernone:hover {
background-color: #3490dc !important;
cursor: context-menu !important;
}
/* ---------------------------------------------------
MEDIAQUERIES
----------------------------------------------------- */
@@ -2,7 +2,7 @@
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="row ">
{{-- {{$alluser}} --}}
{{-- <div class="col-md-8">
<div class="card">
@@ -24,14 +24,14 @@
</div>
@endif
<table class="table table-bordered" id="pengguna">
<table class="table table-striped table-bordered table-sm" id="pengguna" style="width:100%">
<thead>
<tr>
<th>No</th>
<th>Nama</th>
<th>Emails</th>
<th>Taraf</th>
<th>Action</th>
<th class="text-center">Action</th>
</tr>
</thead>
<tbody>
@@ -42,11 +42,15 @@
<td>{{ $user->email }}</td>
<td>
@foreach ($user->roles as $taraf)
<p>{{$taraf->name}}</p>
{{-- <h5><span class="badge badge-primary " >{{$taraf->name}}</span></h5> --}}
<button class="btn btn-primary btn-sm hovernone" >{{$taraf->name}}</button>
@endforeach
</td>
<td>
<a class="btn btn-info" href="{{ route('pengguna.show',$user->id) }}">Edit</a>
<td class="text-center">
{{-- <a class="btn btn-info" href="{{ route('pengguna.show',$user->id) }}">Edit</a> --}}
<a href="{{ route('pengguna.show',$user->id) }}"><i class="far fa-edit"></i></a>
<a href="{{ route('pengguna.show',$user->id) }}"><i class="far fa-eye"></i></a>
<a href="{{ route('pengguna.show',$user->id) }}"><i class="far fa-trash-alt"></i></a>
{{-- <form action="{{ route('pengguna.updatepengguna',$user->id) }}" method="POST">
<a class="btn btn-info" href="{{ route('users.show',$user->id) }}">Show</a>
@@ -70,7 +74,16 @@
</div>
<script>
$(document).ready( function () {
$('#pengguna').DataTable();
$('#pengguna').DataTable( {
// "columnDefs": [ {
// "targets": 4,
// "orderable": false
// } ]
"ordering": false,
"info": false,
"lengthChange": false,
"pageLength": 15
});
} );
</script>
@@ -10,21 +10,25 @@
</div>
@endif
<table class="table table-bordered" id="roles">
<table class="table table-striped table-bordered table-sm" id="roles">
<thead>
<tr>
<th>No</th>
<th>Roles</th>
<th>Action</th>
<th class="text-center">Action</th>
</tr>
</thead>
<tbody>
@foreach ($allpermission as $role)
<tr>
<td>{{ $loop->iteration }}</td>
<td>{{ $role->name }}</td>
<td>
<a class="btn btn-info" href="{{ route('pengguna.showtaraf',$role->id) }}">Edit</a>
<td>{{ $role->name }}
</td>
<td class="text-center">
<a href="{{ route('pengguna.showtaraf',$role->id) }}"><i class="far fa-edit"></i></a>
<a href="{{ route('pengguna.showtaraf',$role->id) }}"><i class="far fa-eye"></i></a>
<a href="{{ route('pengguna.showtaraf',$role->id) }}"><i class="far fa-trash-alt"></i></a>
{{-- <a class="btn btn-info" href="{{ route('pengguna.showtaraf',$role->id) }}">Edit</a> --}}
</form>
</td>
</tr>
@@ -38,7 +42,12 @@
</div>
<script>
$(document).ready( function () {
$('#roles').DataTable();
$('#roles').DataTable({
"ordering": false,
"info": false,
"lengthChange": false,
"pageLength": 15
});
} );
</script>
@@ -10,13 +10,13 @@
</div>
@endif
<table class="table table-bordered" id="taraf">
<table class="table table-striped table-bordered table-sm" id="taraf">
<thead >
<tr>
<th>No</th>
<th>Taraf</th>
<th>Roles</th>
<th>Action</th>
<th class="text-center">Action</th>
</tr>
</thead>
<tbody>
@@ -27,12 +27,15 @@
{{-- <td>{{ $role->email }}</td> --}}
<td>
@foreach ($role->permissions->pluck('name') as $taraf)
<p>{{$taraf}}</p>
<button class="btn btn-primary btn-sm hovernone" >{{$taraf}}</button>
@endforeach
</td>
<td>
<a class="btn btn-info" href="{{ route('pengguna.showtaraf',$role->id) }}">Edit</a>
</form>
<td class="text-center">
{{-- <i class="far fa-edit"></i> --}}
<a href="{{ route('pengguna.showtaraf',$role->id) }}"><i class="far fa-edit"></i></a>
<a href="{{ route('pengguna.showtaraf',$role->id) }}"><i class="far fa-eye"></i></a>
<a href="{{ route('pengguna.showtaraf',$role->id) }}"><i class="far fa-trash-alt"></i></a>
</td>
</tr>
@endforeach
@@ -44,7 +47,12 @@
</div>
<script>
$(document).ready( function () {
$('#taraf').DataTable();
$('#taraf').DataTable({
"ordering": false,
"info": false,
"lengthChange": false,
"pageLength": 15
});
} );
</script>
@endsection