@include('Partials.Pages.index_top')
@if(config('app.barcode_mode') == 'static')
@lang('barcode') |
@endif
@lang('category') |
@lang('subcategory') |
@lang('brand') |
@lang('model') |
@lang('name') |
@lang('description') |
@lang('available') |
@lang('lent') |
@lang('reserved') |
@lang('total') |
@lang('action') |
@foreach($data as $product)
@if(config('app.barcode_mode') == 'static')
@if(!empty($product->barcode))
{{$product->barcode}}
@else
@lang('none')
@endif
|
@endif
@can('categories_view')
{{$product->category->name}}
@else
{{$product->category->name}}
@endcan
|
@can('subcategories_view')
@if(!empty($product->subcategory))
{{$product->subcategory->name}}
@else
@lang('none')
@endif
@else
{{$product->subcategory->name}}
@endcan
|
@can('brands_view')
{{$product->brand->name}}
@else
{{$product->brand->name}}
@endcan
|
@can('models_view')
{{$product->model->name}}
@else
{{$product->model->name}}
@endcan
|
@can('products_view')
@if(!empty($product->name))
{{$product->name}}
@else
@lang('show')
@endif
@else
{{$product->name}}
@endcan
|
{{$product->description}}
|
{{$product->total - (count($product->loans) + count($product->reservations))}}
|
{{count($product->loans)}}
|
{{count($product->reservations)}}
|
{{$product->total}}
|
@can('brand_edit')
@lang('edit')
@endcan
@can('brand_restore')
@lang('restore')
@endcan
@can('brand_delete_force')
@lang('delete_force')
@endcan
|
@endforeach
@include('Partials.Pages.display')
@endsection
@section('scripting')
@endsection