61 lines
2.3 KiB
PHP
61 lines
2.3 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('brand')</th>
|
|
<th>@lang('name')</th>
|
|
<th>@lang('action')</th>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($data as $object)
|
|
<tr>
|
|
<td class="align-middle">
|
|
@can('brands_view')
|
|
<a href="{{route('brands.show',['brand' => $object->brand])}}" class="btn btn-success">
|
|
{{$object->brand->name}}
|
|
</a>
|
|
@else
|
|
{{$object->brand->name}}
|
|
@endcan
|
|
</td>
|
|
<td class="align-middle">
|
|
@can('models_view')
|
|
<a href="{{route('models.show',['model' => $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_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>
|
|
@include('Partials.Pages.display')
|
|
</div>
|
|
@endsection
|
|
|
|
@section('scripting')
|
|
@endsection
|