@if(!empty($data->deleted_at))
@lang('DELETED')
@endif
@lang('product')
@can('product_edit')
@endcan
@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))}}
|
@if(!empty($data->deleted_at))
@lang('deleted_at') :
|
{{date('d-m-Y H:i:s',strtotime($data->deleted_at))}}
|
@endif
@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