Update index.blade.php

This commit is contained in:
Azfar Arsyad
2021-11-23 16:58:07 +08:00
parent 55ad88eb44
commit 65b39c99cc
@@ -3,20 +3,7 @@
@section('content')
<div class="container-fluid">
<div class="row ">
{{-- {{$alluser}} --}}
{{-- <div class="col-md-8">
<div class="card">
<div class="card-header">{{ __('Dashboard') }}</div>
<div class="card-body">
@if (session('status'))
<div class="alert alert-success" role="alert">
{{ session('status') }}
</div>
@endif
</div>
</div>
</div> --}}
<div class="col-md-11 mx-auto card p-4">
@if ($message = Session::get('success'))
<div class="alert alert-success">
@@ -27,7 +14,7 @@
<table class="table table-striped table-xl" id="pengguna" style="width:100%">
<thead class="bg-primary text-white">
<tr>
<th>No</th>
<th><input type="checkbox" aria-label="Checkbox for following text input"></th>
<th>Nama</th>
<th>Emails</th>
<th>Taraf</th>
@@ -38,17 +25,15 @@
@foreach ($alluser as $user)
<tr>
<td>{{ $loop->iteration }}</td>
<td><input type="checkbox" aria-label="Checkbox for following text input" name="{{ $loop->iteration }}"></td>
<td>{{ $user->nama }}</td>
<td>{{ $user->email }}</td>
<td>
@foreach ($user->roles as $taraf)
{{-- <h5><span class="badge badge-primary " >{{$taraf->name}}</span></h5> --}}
<button class="btn btn-primary btn-sm hovernone" >{{$taraf->name}}</button>
@endforeach
</td>
<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>
@@ -77,16 +62,16 @@
$(document).ready( function () {
table = $('#pengguna').DataTable( {
"columnDefs": [
// {
// "targets": 0,
// "orderable": false
// },
{
"targets": 0,
"orderable": false
},
{
"targets": 4,
"orderable": false
}
],
// order: [[1, 'asc']]
order: [[1, 'asc']]
// "ordering": false,
"info": false,
"lengthChange": false,