@extends('layouts.app')
@section('title', 'Add Blog')
@section('title-dashboard', 'Dashboard')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<h1>Add Blog</h1>
<hr>
<form action="add/store" method="POST" class="">
<div class="form-group">
<label for="title">Title</label>
<input type="text" class="form-control" id="title" name="title" placeholder="Title">
</div>
<div class="form-group">
<label for="content">Content</label>
<textarea class="form-control" rows="3" name="content"></textarea>
</div>
<input type="hidden" name="author" value="{{ Auth::user()->name }}">
{{ csrf_field() }}
<input type="submit" name="submit" value="Save" class="btn btn-primary">
<a href="{{action('HomeController@blog')}}"><input type="button" value="Cancel" class="btn btn-default"></a>
</form>
</div>
</div>
</div>
@endsection
|