@extends('admins.layouts.index') @section('content') {!! Form::model($model, ['method'=>'post','class'=>'form-horizontal']) !!}
@foreach(App\Translation::get_lang_array() as $index => $row) @php $data = $model->getFormTranslation($row->lang); @endphp
{{ __('Basic Information') }}
{!! Form::label('locale['.$row->lang.'][name]', __('Name'), ['class'=>'col-sm-3 col-form-label text-right']) !!}
{!! Form::text('locale['.$row->lang.'][name]', $model->id ? (isset($data['name']) ? $data['name']:null):null, ['id'=>'locale['.$row->lang.'][name]','class'=>'form-control-plaintext '.($errors->first('locale.*.name') ? 'is-invalid' : ''), $index == 0 ? 'disabled':'']) !!} {!!$errors->first('locale.*.name', ':message')!!}
@endforeach

{{__('More Information')}}

{!! Form::label('status', __('Status'), ['class'=>'col-sm-4 col-form-label text-right']) !!}
{!! Form::text('status', $model->string_status_displayed('status'), ['id'=>'status','class'=>'form-control-plaintext '.($errors->first('status') ? 'is-invalid' : ''),'placeholder'=>__('Status'),'disabled']) !!} {!!$errors->first('status', ':message')!!}
{!! Form::close() !!} @endsection @section('script') @endsection