@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 '.($errors->first('locale.*.name') ? 'is-invalid' : ''), $index == 0 ? 'autofocus':'']) !!} {!!$errors->first('locale.*.name', ':message')!!}
@endforeach

{{__('More Information')}}

{{ __('Status') }}
{!! Form::radio('status', 1, true, ['id'=>'enabled','class'=>'form-check-input']) !!}
{!! Form::radio('status', 0, false, ['id'=>'disabled','class'=>'form-check-input']) !!}
{!! Form::close() !!} @endsection @section('script') @endsection