{{$key}} = { @foreach($document->getCreatorByPosition($position)->get() as $i => $creator) @if($creator->type == \App\Models\DocumentCreator::ORGANIZATION) {{$creator->literal}} @endif @if($creator->type == \App\Models\DocumentCreator::PERSON) {{$creator->given}}, {{$creator->family}} @endif @if($document->getCreatorByPosition($position)->count()-1 != $i) and @endif @endforeach },