File: D:/HostingSpaces/fire-tech/fire-tech.nl/resources/views/kms/attributes/table.blade.php
<div class="entity-attribute entity-attribute-table @if($errors->has($attribute->key)) error @endif {!!$attribute->class!!}" ng-controller="KmsAttributeSelectController">
{!! Form::label($attribute->key, $attribute->label()) !!}
<div class="content">
@if($attribute->getData())
<table>
<tr>
@foreach(array_keys($attribute->getData()[0]) as $key)
<th>{!! $key !!}</th>
@endforeach
</tr>
@foreach($attribute->getData() as $dataObject)
<tr>
@foreach(array_keys($dataObject) as $key)
<td>{!! $dataObject[$key] !!}</td>
@endforeach
</tr>
@endforeach
</table>
@else
<table>
<tr><td>No data</td></tr>
</table>
@endif
</div>
</div>