mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 01:32:38 +00:00
23 lines
670 B
PHP
23 lines
670 B
PHP
@if(count($userfields) > 0)
|
|
|
|
@foreach($userfields as $userfield)
|
|
|
|
@if($userfield->show_as_column_in_tables == 1)
|
|
@php $userfieldObject = FindObjectInArrayByPropertyValue($userfieldValues, 'name', $userfield->name) @endphp
|
|
<td>
|
|
@if($userfieldObject !== null)
|
|
@if($userfield->type == \Grocy\Services\UserfieldsService::USERFIELD_TYPE_CHECKBOX)
|
|
@if($userfieldObject->value == 1)<i class="fas fa-check"></i>@endif
|
|
@elseif($userfield->type == \Grocy\Services\UserfieldsService::USERFIELD_TYPE_PRESET_CHECKLIST)
|
|
{!! str_replace(',', '<br>', $userfieldObject->value) !!}
|
|
@else
|
|
{{ $userfieldObject->value }}
|
|
@endif
|
|
@endif
|
|
</td>
|
|
@endif
|
|
|
|
@endforeach
|
|
|
|
@endif
|