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

62 lines
2.4 KiB
PHP

@extends('Layouts.master')
@section('content')
<div class="main-container pb-4">
@include('Partials.Pages.index_top')
<table class="table table-striped">
<thead>
<th>@lang('category')</th>
<th>@lang('name')</th>
<th>@lang('action')</th>
</thead>
<tbody>
@foreach($data as $object)
<tr>
<td class="align-middle">
@can('categories_view')
<a href="{{route('categories.show',['category' => $object->category])}}"
class="btn btn-success">
{{$object->category->name}}
</a>
@else
{{$object->name}}
@endcan
</td>
<td class="align-middle">
@can('categories_edit')
<a href="{{route('subcategories.show',['subcategory' => $object])}}"
class="btn btn-success">
{{$object->name}}
</a>
@else
{{$object->name}}
@endcan
</td>
<td>
@can(Request::segment(1).'_edit')
<a href="{{route(Request::segment(1).'.edit',[$data_type => $object])}}"
class="btn btn-outline-success">
@lang('edit')
</a>
@endcan
@can(Request::segment(1).'_restore')
<a href="{{route(Request::segment(1).'.restore',[$data_type => $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>
@include('Partials.Pages.display')
</div>
@endsection
@section('scripting')
@endsection