|
|
@if($location->location_depth > 0)
{{ str_repeat('— ', $location->location_depth) }}
@endif
{{ $location->name }}
|
@if($location->parent_location_id)
@php $parentLocation = FindObjectInArrayByPropertyValue($locations, 'id', $location->parent_location_id); @endphp
@if($parentLocation) {{ $parentLocation->name }} @endif
@endif
|
{{ $location->description }}
|
@include('components.userfields_tbody', array(
'userfields' => $userfields,
'userfieldValues' => FindAllObjectsInArrayByPropertyValue($userfieldValues, 'object_id', $location->id)
))
@endforeach