@if (isset($id)) @php $id = $id @endphp @php $editable = 'disabled' @endphp @else @php $id = 'new' @endphp @php $editable = '' @endphp @endif @php $hidden = isset($hidden) ? 'hidden' : '' @endphp @php $column_id = isset($column_id) ? $column_id : NULL @endphp @php $chart_id = isset($chart_id) ? $chart_id : NULL @endphp @php $chart_type_id = isset($chart_type_id) ? $chart_type_id : NULL @endphp @php $type = isset($type) ? $type : NULL @endphp @php $height = isset($height) ? $height : NULL @endphp @php $report_period_id = isset($report_period_id) ? $report_period_id : NULL @endphp @php $date_from = isset($date_from) ? $date_from : NULL @endphp @php $date_to = isset($date_to) ? $date_to : NULL @endphp
{!! Form::open(['method' => 'POST', 'class' => 'form-inline', 'url' => url("home/config/{$id}") ]) !!}
{!! Form::hidden('column_id', $column_id) !!} {!! Form::hidden('order', $order) !!} {!! Form::select('chart_id', $charts, $chart_id, ['class'=>'form-control singleselect', 'id'=>'chart']) !!}
{!! Form::select('chart_type_id', $chart_types, $chart_type_id, ['class'=>'form-control singleselect', 'id'=>'chart_type']) !!}
{!! Form::label('height', 'Height') !!} {!! Form::text('height', $height, ['class' => 'form-control width-50']) !!}
{!! Form::select("report_period_id", $periods, $report_period_id, ["class"=>"form-control singleselect"]) !!}
{!! Form::select("type", $types, $type, ["class"=>"form-control form-control singleselect"]) !!}
@if ($editable) @else @endif
{!! Form::close() !!} {!! Form::open(['method' => 'DELETE', 'class' => 'form-inline', 'url' => url("home/config/{$id}") ]) !!}
{!! Form::close() !!}