@php require_frontend_packages(['datatables']); @endphp @extends('layout.default') @section('title', $__t('Locations')) @section('content')

@include('components.userfields_thead', array( 'userfields' => $userfields )) @foreach($locations as $location) @include('components.userfields_tbody', array( 'userfields' => $userfields, 'userfieldValues' => FindAllObjectsInArrayByPropertyValue($userfieldValues, 'object_id', $location->id) )) @endforeach
{{ $__t('Name') }} {{ $__t('Parent location') }} {{ $__t('Description') }}
@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 }}
@stop