@extends('admins.layouts.index') @section('content') {!! Form::model($model, ['method'=>'post','class'=>'form-horizontal','files'=>true]) !!}
@foreach(App\Translation::get_lang_array() as $index => $row) @php $data = $model->getFormTranslation($row->lang); @endphp
{{ __('Basic Information') }}
{!! Form::label('locale['.$row->lang.'][title]', __('Title'), ['class'=>'col-sm-3 col-form-label text-right']) !!}
{!! Form::text('locale['.$row->lang.'][title]', $model->id ? (isset($data['title']) ? $data['title']:null):null, ['id'=>'locale['.$row->lang.'][title]','class'=>'form-control '.($errors->first('locale.*.title') ? 'is-invalid' : ''), $index == 0 ? 'autofocus':'']) !!} {!!$errors->first('locale.*.title', ':message')!!}
{!! Form::label('locale['.$row->lang.'][keywords]', __('Keywords'), ['class'=>'col-sm-3 col-form-label text-right']) !!}
{!! Form::text('locale['.$row->lang.'][keywords]', $model->id ? (isset($data['keywords']) ? $data['keywords']:null):null, ['id'=>'locale['.$row->lang.'][keywords]','class'=>'form-control '.($errors->first('locale.*.keywords') ? 'is-invalid' : ''), $index == 0 ? 'autofocus':'']) !!} {!!$errors->first('locale.*.keywords', ':message')!!}
{!! Form::label('locale['.$row->lang.'][description]', __('Description'), ['class'=>'col-sm-2 col-form-label text-right']) !!}
{!! Form::textarea('locale['.$row->lang.'][description]', $model->id ? (isset($data['description']) ? $data['description']:null):null, ['id'=>'locale['.$row->lang.'][description]','class'=>'textarea form-control '.($errors->first('locale.*.description') ? 'is-invalid' : ''), $index == 0 ? 'autofocus':'']) !!} {!!$errors->first('locale.*.description', ':message')!!}
{!! Form::label('locale['.$row->lang.'][tags]', __('Tags'), ['class'=>'col-sm-3 col-form-label text-right']) !!}
{!! Form::text('locale['.$row->lang.'][tags]', $model->id ? (isset($data['tags']) ? $data['tags']:null):null, ['id'=>'tags_'.$row->lang,'class'=>'form-control '.($errors->first('locale.*.tags') ? 'is-invalid' : ''), $index == 0 ? 'autofocus':'']) !!} {!!$errors->first('locale.*.tags', ':message')!!}
@endforeach

{{__('Basic Information')}}

{{ __('Status') }}
{!! Form::radio('status', 1, true, ['id'=>'status_yes','class'=>'form-check-input']) !!}
{!! Form::radio('status', 0, false, ['id'=>'status_no','class'=>'form-check-input']) !!}
{{ __('Customers Feedback') }}
{!! Form::radio('customers_feedback', 1, true, ['id'=>'customers_feedback_yes','class'=>'form-check-input']) !!}
{!! Form::radio('customers_feedback', 0, false, ['id'=>'customers_feedback_no','class'=>'form-check-input']) !!}
{{ __('Display In Top Menu') }}
{!! Form::radio('display_in_top_menu', 1, true, ['id'=>'display_in_top_menu_yes','class'=>'form-check-input']) !!}
{!! Form::radio('display_in_top_menu', 0, false, ['id'=>'display_in_top_menu_no','class'=>'form-check-input']) !!}
{{ __('Display In Footer Menu') }}
{!! Form::radio('display_in_footer_menu', 1, true, ['id'=>'display_in_footer_menu_yes','class'=>'form-check-input']) !!}
{!! Form::radio('display_in_footer_menu', 0, false, ['id'=>'display_in_footer_menu_no','class'=>'form-check-input']) !!}
{!! Form::close() !!} @endsection @section('script') @endsection