53 lines
1.9 KiB
PHP
53 lines
1.9 KiB
PHP
@php
|
|
$siteBreadcumb = [
|
|
["url"=>"/admin/permissions","label"=>$siteTitle],
|
|
["url"=>"/admin/permissions","label"=>$sitesubTitle]
|
|
];
|
|
@endphp
|
|
|
|
@extends('layouts.app')
|
|
|
|
@section('content')
|
|
<div class="row">
|
|
<div class="col-lg-12 margin-tb">
|
|
<div class="pull-left">
|
|
<h2><i class="fa fa-th-list"></i> @php echo $sitesubTitle; @endphp</h2>
|
|
</div>
|
|
<div class="pull-right">
|
|
<a class="btn btn-sm btn-success" href="{{ route('permissions.create') }}"><i class="fa fa-edit"></i> Tambah Data</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<table class="table table-striped jambo_table">
|
|
<tr>
|
|
<thead>
|
|
<th width="50">No</th>
|
|
<th>Nama Permission</th>
|
|
<th width="150px" class="text-center">Action</th>
|
|
</thead>
|
|
</tr>
|
|
@foreach ($data as $key => $value)
|
|
<tr>
|
|
<td>{{ ++$i }}</td>
|
|
<td>{{ $value->name }}</td>
|
|
<td class="text-center">
|
|
<form class="form-delete" action="{{ route('permissions.destroy',$value->id) }}" method="POST">
|
|
<a class="btn btn-default btn-sm" href="{{ route('permissions.show',$value->id) }}"title="Lihat"><i class="fa fa-bullseye"></i></a>
|
|
<a class="btn btn-default btn-sm" href="{{ route('permissions.edit',$value->id) }}"title="Ubah"><i class="fa fa-edit"></i></a>
|
|
@csrf
|
|
@method('DELETE')
|
|
<button type="submit" class="btn btn-default btn-sm"title="Hapus"><i class="fa fa-trash"></i></button>
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</table>
|
|
{!! $data->links() !!}
|
|
|
|
@section('scripts')
|
|
<!-- <script>
|
|
Swal.fire('Any fool can use a computer')
|
|
</script> -->
|
|
@endsection
|
|
@stop |