@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, false); @endphp
{{ __('Basic Information') }}
{!! Form::label('locale['.$row->lang.'][title]', __('Title'), ['class'=>'col-sm-3 col-form-label text-right']) !!}

@if(isset($data['title'])) {{ $data['title'] }} @endif

{!! Form::label('locale['.$row->lang.'][keywords]', __('Keywords'), ['class'=>'col-sm-3 col-form-label text-right']) !!}

@if(isset($data['keywords'])) {{ $data['keywords'] }} @endif

{!! Form::label('locale['.$row->lang.'][description]', __('Description'), ['class'=>'col-sm-2 col-form-label text-right']) !!}

@if(isset($data['description'])) {!! $data['description'] !!} @endif

{!! Form::label('locale['.$row->lang.'][tags]', __('Tags'), ['class'=>'col-sm-2 col-form-label text-right']) !!}

@if(isset($data['tags'])) {{ $data['tags'] }} @endif

@endforeach

{{__('Basic 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::label('customers_feedback', __('Customers Feedback'), ['class'=>'col-sm-4 col-form-label text-right']) !!}
{!! Form::text('customers_feedback', $model->string_status_displayed('customers_feedback'), ['id'=>'customers_feedback','class'=>'form-control-plaintext '.($errors->first('customers_feedback') ? 'is-invalid' : ''),'placeholder'=>__('Customer Feedback'),'disabled']) !!} {!!$errors->first('customers_feedback', ':message')!!}
{!! Form::label('display_in_top_menu', __('Display In Top Menu'), ['class'=>'col-sm-4 col-form-label text-right']) !!}
{!! Form::text('display_in_top_menu', $model->string_switch_displayed('display_in_top_menu'), ['id'=>'display_in_top_menu','class'=>'form-control-plaintext '.($errors->first('display_in_top_menu') ? 'is-invalid' : ''),'placeholder'=>__('Display In Top Menu'),'disabled']) !!} {!!$errors->first('display_in_top_menu', ':message')!!}
{!! Form::label('display_in_footer_menu', __('Display In Footer Menu'), ['class'=>'col-sm-4 col-form-label text-right']) !!}
{!! Form::text('display_in_footer_menu', $model->string_switch_displayed('display_in_footer_menu'), ['id'=>'display_in_footer_menu','class'=>'form-control-plaintext '.($errors->first('display_in_footer_menu') ? 'is-invalid' : ''),'placeholder'=>__('Display In Footer Menu'),'disabled']) !!} {!!$errors->first('display_in_footer_menu', ':message')!!}
{!! Form::close() !!} @endsection @section('script') @endsection