@extends('layouts.app') @section('content')
Dashboard - Add Article
@if (session('status')) @endif
{!! Form::open(['route' => 'articles.store', 'class'=> 'form', 'files'=>'true', 'onsubmit'=>'process()']) !!} @if(count($errors)>0 )
There were some problems adding the article.
    @foreach($errors->all() as $error)
  • {{$error}}
  • @endforeach
@endif @if (session()->has('message'))
{!! session()->get('message') !!}
@endif
{!! Form::label('Article Title', 'Article Title') !!} {!! Form::text('articletitle', null, ['class'=> 'form-control', 'placeholder'=> 'Enter Article Title', 'required']) !!} Enter a title for article
{!! Form::label('Article Category', 'Article Category') !!} The category to which article belongs to
{!! Form::label('Article Status', 'Publish Article ?') !!} If yes, article will be displayed on homepage immedeately
{!! Form::label('Article Location', 'Article Location') !!} {!! Form::text('articlelocation', null, ['class'=> 'form-control', 'placeholder'=> 'Enter Article Location', 'required']) !!} Enter a location for this article
{!! Form::label('Article Photo', 'Article Photo') !!} {!! Form::file('articlephoto', ['class'=>'form-control','required']) !!} Choose a photo for the article - Best size : 1772px by 1181px
{!! Form::label('Article Description', 'Article Description') !!} {!! Form::textarea('articledetails', null, ['id' => 'articlecontent','class'=> 'form-control', 'placeholder'=> 'Enter the article content here', 'required']) !!} Enter the contents of article here
{{--add article location--}}
{!! Form::close() !!}
@endsection