@extends('layouts.settings.default') @push('css_lib') @endpush @section('settings_title',trans('lang.user_table')) @section('settings_content') @include('flash::message') @include('adminlte-templates::common.errors')
{!! Form::open(['url' => ['settings/translate'], 'method' => 'patch']) !!} {!! Form::hidden('_current_lang', $tab) !!}
{{--['user' => ['en' => 'user.php', 'nl' => 'user.php']]--}} @foreach($langFiles as $filename => $lang)
@foreach(\Illuminate\Support\Facades\Lang::get($filename.'',[],$tab) as $key => $item) @if(!is_array($item)) @component('layouts.components.lang_item',[ 'item' => $item, 'name' => $filename.'|'.$key, 'key' => $key, 'keyWithFileName' => $filename.'.'.$key]) @endcomponent @elseif(is_array($item)) {{--lang item contains array value--}} @foreach($item as $childKey => $childItem) @if(!is_array($childItem)) @component('layouts.components.lang_item',[ 'item' => $childItem, 'name' => $filename.'|'.$key.'|'.$childKey, 'key' => $key.'.'.$childKey, 'keyWithFileName' => $filename.".".$key.".".$childKey]) @endcomponent @elseif(is_array($childItem)) @foreach($childItem as $childKey2 => $childItem2) @if(!is_array($childItem2)) @component('layouts.components.lang_item',[ 'item' => $childItem2, 'name' => $filename.'|'.$key.'|'.$childKey.'|'.$childKey2, 'key' => $key.'.'.$childKey.'.'.$childKey2, 'keyWithFileName' => $filename.".".$key.".".$childKey.".".$childKey2]) @endcomponent @elseif(is_array($childItem2)) @foreach($childItem2 as $childKey3 => $childItem3) @if(!is_array($childItem3)) @component('layouts.components.lang_item',[ 'item' => $childItem3, 'name' => $filename.'|'.$key.'|'.$childKey.'|'.$childKey2.'|'.$childKey3, 'key' => $key.'.'.$childKey.'.'.$childKey2.'.'.$childKey3, 'keyWithFileName' => $filename.".".$key.".".$childKey.".".$childKey2.".".$childKey3]) @endcomponent @elseif(is_array($childItem3)) @foreach($childItem3 as $childKey4 => $childItem4) @if(!is_array($childItem4)) @component('layouts.components.lang_item',[ 'item' => $childItem4, 'name' => $filename.'|'.$key.'|'.$childKey.'|'.$childKey2.'|'.$childKey3.'|'.$childKey4, 'key' => $key.'.'.$childKey.'.'.$childKey2.'.'.$childKey3.'.'.$childKey4, 'keyWithFileName' => $filename.".".$key.".".$childKey.".".$childKey2.".".$childKey3.".".$childKey4]) @endcomponent @elseif(is_array($childItem4)) @foreach($childItem4 as $childKey5 => $childItem5) @if(!is_array($childItem5)) @component('layouts.components.lang_item',[ 'item' => $childItem5, 'name' => $filename.'|'.$key.'|'.$childKey.'|'.$childKey2.'|'.$childKey3.'|'.$childKey4.'|'.$childKey5, 'key' => $key.'.'.$childKey.'.'.$childKey2.'.'.$childKey3.'.'.$childKey4.'.'.$childKey5, 'keyWithFileName' => $filename.".".$key.".".$childKey.".".$childKey2.".".$childKey3.".".$childKey4.".".$childKey5]) @endcomponent @elseif(is_array($childItem5)) @foreach($childItem5 as $childKey6 => $childItem6) @if(!is_array($childItem6)) @component('layouts.components.lang_item',[ 'item' => $childItem6, 'name' => $filename.'|'.$key.'|'.$childKey.'|'.$childKey2.'|'.$childKey3.'|'.$childKey4.'|'.$childKey5.'|'.$childKey6, 'key' => $key.'.'.$childKey.'.'.$childKey2.'.'.$childKey3.'.'.$childKey4.'.'.$childKey5.'.'.$childKey6, 'keyWithFileName' => $filename.".".$key.".".$childKey.".".$childKey2.".".$childKey3.".".$childKey4.".".$childKey5.".".$childKey6]) @endcomponent @endif @endforeach @endif @endforeach @endif @endforeach @endif @endforeach @endif @endforeach @endif @endforeach @endif @endforeach
{!! Form::text('new_key', null, ['data-file'=>$filename,'class' => 'form-control form-control-sm new-key','placeholder'=> trans('lang.new_lang_key')]) !!}
{!! Form::text('new_value', null, ['data-file'=>$filename, 'class' => 'form-control new-value','placeholder'=> trans('lang.new_lang_value')]) !!}
{{trans('lang.new_lang_value')}}
@endforeach
{{trans('lang.cancel')}}
{!! Form::close() !!}
@include('layouts.media_modal',['collection'=>null]) @endsection @push('scripts_lib') @endpush @push('scripts') @endpush