@php
$isCatalog = true;
foreach($locales as $locale) {
if(isset($translation[$locale])) {
$isCatalog = false;
break;
}
}
@endphp
@if(is_array($translation) && $isCatalog)
| {{ str_repeat(" ", $indent * 4) . $key }} |
@foreach($translation as $key2 => $value2)
@include('translation-manager::key_row', [
'key' => $key2,
'translation' => $value2,
'indent' => $indent + 1,
'parent_key' => $parent_key . $key .'.'
])
@endforeach
@else
| {{ str_repeat(" ", $indent * 4) . $key }} |
@foreach($locales as $locale)
@php $t = isset($translation[$locale]) ? $translation[$locale] : null; @endphp
{{ $t ? htmlentities($t->value, ENT_QUOTES, 'UTF-8', false) : '' }}
|
@endforeach
@if($deleteEnabled)
|
@endif
@endif