Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @extends('layouts.master')
- @section('title')
- Trending quotes
- @endsection
- @section('styles')
- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
- @endsection
- @section('content')
- <section class="quotes">
- <h1>Latest Quotes</h1>
- @for($i=0; $i < count($quotes); $i++)
- <article class="quote">
- <div class="delete"><a href="#">x</a></div>
- {{$quotes[$i]->quote}}
- <div class="info">Created by <a href="#">{{$quotes[$i]->author->name}}</a> on {{$quotes[$i]->created_at}}</div>
- </article>
- @endfor
- <div class="pagination">
- pagination
- </div>
- </section>
- <section class="edit-quote">
- <h1>Add a Quote</h1>
- <form action="{{route('create')}}" method="post">
- <div class="input-group">
- <label for="author">Your Name</label>
- <input type="text" name="author" id="author" placeholder="Your Name">
- </div>
- <div class="input-group">
- <label for="quote">Your Quote</label>
- <textarea name="quote" id="quote" cols="5" placeholder="Quote"></textarea>
- </div>
- <button class="btn" type="submit">Submit Quote</button>
- <input type="hidden" name="_token" id="csrf-token" value="{{ Session::token() }}" />
- </form>
- </section>
- @endsection
Add Comment
Please, Sign In to add comment