@extends('layouts.app') @section('title') {{__("Translate model")}}: {{($model->{$translates[0]})}} - @endsection @section('content') @include('components.err')

{{__("Translate model")}}: {{($model->{$translates[0]})}}

{{__("Main language content")}}:({{config('app.xlang.main')}})

@foreach($translates as $tr) @endforeach
{{__("Title")}} {{__("Value")}}
{{$tr}} {{($model->{$tr})}}
@csrf @foreach($langs as $lang)

{{__("Translate model")}}: {{$lang->name}} ({{$lang->tag}})

@foreach($translates as $tr)
@if( $tr == 'body' || $tr == 'desc' || $tr == 'description' || $tr == 'excerpt' || $tr == 'table' || request()->has('editor')) @else tag)) dir="rtl" @else dir="ltr" @endif type="text" id="{{$lang->tag}}{{$tr}}" name="data[{{$lang->tag}}][{{$tr}}]" value="{{gettype($model->getTranslation($tr,$lang->tag)) == 'string' ? $model->getTranslation($tr,$lang->tag):'' }}" placeholder="" class="form-control"> @endif
@endforeach
@endforeach
@endsection