@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.'][description]', __('Description'), ['class'=>'col-sm-2 col-form-label text-right']) !!}

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

@if(isset($data['image_url']) && $data['image_url']) @endif
{!! Form::label('locale['.$row->lang.'][link_url]', __('Link Url'), ['class'=>'col-sm-3 col-form-label text-right']) !!}

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

@endforeach

{{__('Basic Information')}}

@if($model->image_path)

@endif
{!! Form::label('text_align', __('Text Align'), ['class'=>'col-sm-2 col-form-label text-right']) !!}
{!! mb_strtoupper($model->text_align) !!}
{!!$errors->first('text_align', ':message')!!}
{!! 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::close() !!} @endsection @section('script') @endsection