Lager-v3/resources/views/roles/index.blade.php

40 lines
1.2 KiB
PHP

@extends('Layouts.master')
@section('content')
<div class="main-container pb-4">
@include('Partials.Pages.index_top')
<table class="table table-striped table-hover mt-4">
<thead>
<th>@lang('name')</th>
<th>@lang('action')</th>
</thead>
<tbody>
@foreach($data as $role)
<tr>
<td>
@can('roles_view')
<a href="{{route('roles.show',['role' => $role])}}" class="btn btn-success">
{{$role->name}}
</a>
@else
{{$role->name}}
@endcan
</td>
<td>
@can('roles_edit')
<a href="{{route('roles.edit',['role' => $role])}}"
class="btn btn-outline-success">@lang('edit')</a>
@endcan
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
@endsection
@section('scripting')
@endsection