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

23 lines
934 B
PHP

<h2>@lang('products')</h2>
@if(count($data->products) >= 1)
<table>
@foreach($data->products as $product)
<tr>
<td>
<a href="{{route('products.show',['product' => $product])}}" class="btn btn-success" target="_blank">
@if(config('app.barcode_mode') == 'dynamic')
{{$product->category->name}}.@if(!empty($product->subcategory->name)){{$product->subcategory->name}}.@endif{{$product->brand->name}}.{{$product->model->name}}@if(!empty($product->name)).{{$product->name}}@endif
@endif
@if(config('app.barcode_mode') == 'static')
{{$tracked->loanable->barcode}}
@endif
</a>
</td>
</tr>
@endforeach
</table>
@else
@lang('no_amount') @lang('subcategories')
@endif