@extends('Layouts.master') @section('content')

@if(!empty($data->deleted_at)) @lang('DELETED') @endif @lang('product')

@can('product_edit') @endcan
@if(!empty($data->deleted_at)) @endif
@if(config('app.barcode_mode') == 'static') @lang('static') @elseif(config('app.barcode_mode') == 'dynamic') @lang('dynamic') @endif @lang('barcode') : @if(config('app.barcode_mode') == 'static') @if(!empty($data->barcode)) {{$data->barcode}} @endif @elseif(config('app.barcode_mode') == 'dynamic') {{$data->category->name}}.@if(!empty($data->subcategory)){{$data->subcategory->name}}.@endif{{$data->brand->name}}.{{$data->model->name}}@if(!empty($data->name)).{{$data->name}}@endif @endif
@lang('category') : {{$data->category->name}}
@lang('subcategory') : @if(!empty($data->subcategory)) {{$data->subcategory->name}} @else @lang('none') @endif
@lang('brand') : {{$data->brand->name}}
@lang('model') : {{$data->model->name}}
@lang('name') : @if(!empty($data->name)) {{$data->name}} @endif
@lang('created_at') : {{date('d-m-Y H:i:s',strtotime($data->created_at))}}
@lang('updated_at') : {{date('d-m-Y H:i:s',strtotime($data->updated_at))}}
@lang('deleted_at') : {{date('d-m-Y H:i:s',strtotime($data->deleted_at))}}

@lang('pool')

@lang('available') : {{$data->total - (count($data->loans) + count($data->reservations))}}
@lang('lent') : {{count($data->loans)}}
@lang('reserved') : {{count($data->reservations)}}
@lang('total') : {{$data->total}}

@endsection @section('scripting') @endsection