{!! Form::hidden("admin_id",App\Libs\Adminauth::user()->id,['class'=>'form-control']) !!} @if(Request::is('admin/paragraphs/create')) @php $input='page_id'; @endphp
{!! Form::rawLabel($input,trans('admin.Page')."*",['class' => 'col-md-2 control-label']) !!}
{!! Form::select($input, @$pages, null, ['class' => 'form-control','placeholder'=>trans('admin.Choose')]) !!} @foreach($errors->get($input) as $message) {{ $message }} @endforeach
@else {!! Form::hidden("page_id",@$row->page_id,['class'=>'form-control']) !!} @endif @php $input='title'; @endphp
{!! Form::rawLabel($input,trans('admin.Title')."*",['class' => 'col-md-2 control-label']) !!}
{!! Form::text($input,null,['class'=>'form-control']) !!} @foreach($errors->get($input) as $message) {{ $message }} @endforeach
@php $input='content'; @endphp
{!! Form::rawLabel($input,trans('admin.Content'),['class' => 'col-md-2 control-label']) !!}
{!! Form::textarea($input,html_entity_decode($row->$input),['class'=>'form-control froala']) !!} @foreach($errors->get($input) as $message) {{ $message }} @endforeach
@php $input='main_image'; @endphp
{!! Form::rawLabel($input,trans('admin.Main image'),['class' => 'col-md-2 control-label']) !!} {{trans("admin.jpg,png,jpeg")}}, {{trans("front.Allowed max file size 4MB")}} {{trans("admin.Recommended resolution 644x339")}}
{!! Form::file($input,['class'=>'form-control fileinput','accept'=>'image/*','data-show-preview'=>'false','data-allowed-file-extensions'=>'["jpg", "png","jpeg"]']) !!} {!!viewValue($row->$input,'image')!!} @if($row->$input) {{trans("admin.Delete")}} @endif @foreach($errors->get($input) as $message) {{ $message }} @endforeach
@section('javascripts') @stop