{{-- for multilingual implementation, this is for navigator in view files , it is dynamically according to config(app.locals) --}} {{-- best way to make this job dynamically according to config(app.locals) * this is work with: js\blue-oocean.js 'languages navigator' function --}} @php $current_local = app()->getLocale(); @endphp
@foreach (config('app.locales') as $localeKey => $locale) {{-- my custom Data Attribute is data-localpref I will us it in another script --}}
{{ html()->label(__('models/products.fields.title').' - '.$localeKey)->class('col-md-2 form-control-label')->for($localeKey.'_title') }}
{{ html()->text($localeKey.'_title') ->class('form-control') ->placeholder(__('labels.backend.roles.fields.name')) ->attribute('maxlength', 191) ->required() }}
{{ html()->label(__('models/products.fields.description').' - '.($localeKey))->class('col-md-2 form-control-label')->for($localeKey.'_description') }}
{{ html()->textArea($localeKey.'_description') ->class('form-control') ->placeholder(__('labels.backend.roles.fields.description')) ->attribute('maxlength', 191) }}
@endforeach