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

41 lines
1.5 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 $object)
<tr>
<td>
{{$object->name}}
</td>
<td>
@can(Request::segment(1).'_edit')
<a href="{{route(Request::segment(1).'.edit',[$data_name => $object])}}" class="btn btn-outline-success">
@lang('edit')
</a>
@endcan
@can(Request::segment(1).'_restore')
<a href="{{route(Request::segment(1).'.restore',[$data_name => $object])}}" class="btn btn-outline-success">
@lang('restore')
</a>
@endcan
@can(Request::segment(1).'_delete_force')
@include('Partials.Form.Input.Modal.delete_force')
@endcan
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
@endsection
@section('scripting')
@endsection