@php require_frontend_packages(['datatables']); @endphp @extends('layout.default') @section('title', $__t('Equipment')) @section('content')
@include('components.userfields_thead', array( 'userfields' => $userfields, 'excludeFieldTypes' => [\Grocy\Services\UserfieldsService::USERFIELD_TYPE_FILE] )) @foreach($equipment as $equipmentItem) @include('components.userfields_tbody', array( 'userfields' => $userfields, 'userfieldValues' => FindAllObjectsInArrayByPropertyValue($userfieldValues, 'object_id', $equipmentItem->id), 'excludeFieldTypes' => [\Grocy\Services\UserfieldsService::USERFIELD_TYPE_FILE] )) @endforeach
{{ $__t('Name') }}
{{ $equipmentItem->name }}

{{ $__t('The selected equipment has no instruction manual') }}

@foreach($userfields as $userfield) @if($userfield->type == \Grocy\Services\UserfieldsService::USERFIELD_TYPE_FILE) @endif @endforeach
@stop