@extends(BaseHelper::getAdminMasterLayoutTemplate()) @section('content')
@php do_action(BASE_ACTION_META_BOXES, 'top', new \Botble\Language\Models\Language) @endphp
{!! Form::helper(trans('plugins/language::language.choose_language_helper')) !!}
{!! Form::helper(trans('plugins/language::language.language_name_helper')) !!}
{!! Form::helper(trans('plugins/language::language.locale_helper')) !!}
{!! Form::helper(trans('plugins/language::language.language_code_helper')) !!}

{!! Form::helper(trans('plugins/language::language.text_direction_helper')) !!}
{!! Form::helper(trans('plugins/language::language.flag_helper')) !!}
{!! Form::helper(trans('plugins/language::language.order_helper')) !!}

@php do_action(BASE_ACTION_META_BOXES, 'advanced', new \Botble\Language\Models\Language) @endphp
@foreach ($activeLanguages as $item) @include('plugins/language::partials.language-item', compact('item')) @endforeach
{{ trans('plugins/language::language.language_name') }} {{ trans('plugins/language::language.locale') }} {{ trans('plugins/language::language.code') }} {{ trans('plugins/language::language.default_language') }} {{ trans('plugins/language::language.order') }} {{ trans('plugins/language::language.flag') }} {{ trans('plugins/language::language.actions') }}
{!! Form::open(['route' => 'languages.settings']) !!}

{!! Form::customSelect('language_display', ['all' => trans('plugins/language::language.language_display_all'), 'flag' => trans('plugins/language::language.language_display_flag_only'), 'name' => trans('plugins/language::language.language_display_name_only')], setting('language_display', 'all')) !!}
{!! Form::customSelect('language_switcher_display', ['dropdown' => trans('plugins/language::language.language_switcher_display_dropdown'), 'list' => trans('plugins/language::language.language_switcher_display_list')], setting('language_switcher_display', 'dropdown')) !!}

{{ trans('plugins/language::language.hide_languages_description') }}

    @foreach (Language::getActiveLanguage() as $language) @if (!$language->lang_is_default)
  • lang_id, json_decode(setting('language_hide_languages', '[]'), true))) checked="checked" @endif>
  • @endif @endforeach
{!! Form::helper(trans_choice('plugins/language::language.hide_languages_helper_display_hidden', count(json_decode(setting('language_hide_languages', '[]'), true)), ['language' => Language::getHiddenLanguageText()])) !!}
{!! Form::close() !!}
@include('core/table::partials.modal-item', [ 'type' => 'danger', 'name' => 'modal-confirm-delete', 'title' => trans('core/base::tables.confirm_delete'), 'content' => trans('plugins/language::language.delete_confirmation_message'), 'action_name' => trans('core/base::tables.delete'), 'action_button_attributes' => [ 'class' => 'delete-crud-entry', ], ]) @stop