@extends('backend.layouts.app') @section('title', 'Poll Create - e4m') @section('content')

Poll Create

@csrf @if (isset($article_data[0])) @method('PUT') @endif @if (Session::has('alertmessage'))
{!! Form::button('X', ['class' => 'close', 'data-dismiss' => 'alert']) !!} {!! Form::label('msg', Session::get('alertmessage'), ['class' => 'label']) !!}
@endif
{!! html()->text('Hyperlink', $article_data[0]->Hyperlink ?? old('Hyperlink'))->class('form-control box-size') !!} @if ($errors->has('Hyperlink')) {{ $errors->first('Hyperlink') }} @endif
{!! Html::text('title', $article_data[0]->title ?? old('title'))->class('form-control box-size') !!} @if ($errors->has('title')) {{ $errors->first('title') }} @endif
{!! Html::text('question', $article_data[0]->question ?? old('question'))->class('form-control box-size') !!} @if ($errors->has('question')) {{ $errors->first('question') }} @endif
@if (count($answer) > 0) @foreach ($answer as $key) {!! html()->text("answer[$key->id]", $key->answer)->class('form-control box-size') !!} Remove @endforeach @else {!! Html::input('text', 'answer[]', old('answer'))->class('form-control box-size') !!} @endif
Cancel
@endsection