@extends(BaseHelper::getAdminMasterLayoutTemplate()) @section('content')

  {{ trans('plugins/translation::translation.translations') }}

@if (empty($group)) {!! Form::open(['route' => 'translations.import', 'class' => 'form-inline', 'role' => 'form']) !!} {!! Form::customSelect('replace', [ 0 => trans('plugins/translation::translation.append_translation'), 1 => trans('plugins/translation::translation.replace_translation') ], null, ['wrapper_class' => 'd-inline-block mb-0']) !!} {!! Form::close() !!}
@endif @if (!empty($group))
@csrf {{ trans('plugins/translation::translation.back') }}
{{ trans('plugins/translation::translation.export_warning', ['lang_path' => lang_path()]) }}
{!! apply_filters('translation_other_translation_header', null) !!} @endif {!! Form::open(['role' => 'form']) !!} {!! Form::customSelect('group', $groups, $group, ['class' => 'group-select select-search-full']) !!} {!! Form::close() !!} @if (!empty($group))
@foreach($locales as $locale) @endforeach {!! apply_filters('translation_other_translation_table_header', null) !!} @foreach ($translations as $key => $translation) @foreach($locales as $locale) @php $item = $translation[$locale] ?? null @endphp @endforeach @endforeach {!! apply_filters('translation_other_translation_table_body', null) !!}
{{ $locale }}
{!! ($item ? htmlentities($item->value, ENT_QUOTES, 'UTF-8', false) : '') !!}
@else

{{ trans('plugins/translation::translation.choose_group_msg') }}

@endif
@if (!empty($group)) {!! trans('plugins/translation::translation.confirm_publish_group', ['group' => $group]) !!} @endif @stop