Lager-v3/resources/views/cabelCategories/show_data.blade.php

21 lines
662 B
PHP

<h2>@lang('cabels')</h2>
@if(count($data->cabels) >= 1)
<table>
@foreach($data->cabels as $cabel)
<tr>
<td>
@can('cabels_view')
<a href="{{route('cabels.show',['cabel' => $cabel])}}" class="btn btn-success" target="_blank">
{{$cabel->category->name}}.{{$cabel->name}}
</a>
@else
{{$cabel->category->name}}.{{$cabel->name}}
@endcan
</td>
</tr>
@endforeach
</table>
@else
@lang('no_amount') @lang('products')
@endif