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

{{__('Photos Information')}}

@foreach($model->photos()->orderBy('is_header','desc')->get() as $photo)
@if($photo->is_header)
{{ __('Header') }}
@endif
@endforeach
@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('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::close() !!} @endsection @section('script') @endsection