@extends('admins.layouts.index') @section('content') {!! Form::model($model, ['method'=>'post','class'=>'form-horizontal','files'=>true]) !!}

{{__('Header Image Information')}}

@if($model->header_image_path)

@endif
@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

{{__('More Information')}}

{!! Form::label('published_at', __('Published At'), ['class'=>'col-sm-4 col-form-label text-right']) !!}
{!! Form::text('published_at', $model->id ? $model->published_at:$model->date_displayed('now'), ['id'=>'published_at','class'=>'form-control-plaintext '.($errors->first('published_at') ? 'is-invalid' : ''),'placeholder'=>__('Published At'),'disabled']) !!} {!!$errors->first('published_at', ':message')!!}
{!! Form::label('category_id', __('Category'), ['class'=>'col-sm-4 col-form-label text-right']) !!}
{!! Form::text('category_id', $model->getParentTranslation('category_id','name'), ['id'=>'category_id','class'=>'form-control-plaintext '.($errors->first('category_id') ? 'is-invalid' : ''),'placeholder'=>__('Category'),'disabled']) !!} {!!$errors->first('category_id', ':message')!!}
{!! Form::close() !!} @endsection @section('script') @endsection