@extends('Layouts.master') @section('content')
@include('Partials.Pages.index_top') @if(config('app.barcode_mode') == 'static') @endif @foreach($data as $product) @if(config('app.barcode_mode') == 'static') @endif @endforeach
@lang('barcode')@lang('category') @lang('subcategory') @lang('brand') @lang('model') @lang('name') @lang('description') @lang('available') @lang('lent') @lang('reserved') @lang('total') @lang('action')
@if(!empty($product->barcode)) {{$product->barcode}} @else @lang('none') @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
@include('Partials.Pages.display')
@endsection @section('scripting') @endsection