kellykamay

index.blade.php

Mar 24th, 2016
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.33 KB | None | 0 0
  1. @extends('layouts.master')
  2.  
  3. @section('title')
  4. Trending quotes
  5. @endsection
  6.  
  7. @section('styles')
  8. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
  9. @endsection
  10.  
  11. @section('content')
  12. <section class="quotes">
  13.     <h1>Latest Quotes</h1>
  14.     @for($i=0; $i < count($quotes); $i++)
  15.    <article class="quote">
  16.         <div class="delete"><a href="#">x</a></div>
  17.         {{$quotes[$i]->quote}}
  18.         <div class="info">Created by <a href="#">{{$quotes[$i]->author->name}}</a> on {{$quotes[$i]->created_at}}</div>
  19.     </article>
  20.     @endfor
  21.     <div class="pagination">
  22.         pagination
  23.     </div>
  24. </section>
  25. <section class="edit-quote">
  26.     <h1>Add a Quote</h1>
  27.     <form action="{{route('create')}}" method="post">
  28.         <div class="input-group">
  29.             <label for="author">Your Name</label>
  30.             <input type="text" name="author" id="author" placeholder="Your Name">
  31.         </div>
  32.         <div class="input-group">
  33.             <label for="quote">Your Quote</label>
  34.             <textarea name="quote" id="quote" cols="5" placeholder="Quote"></textarea>
  35.         </div>
  36.         <button class="btn" type="submit">Submit Quote</button>
  37.         <input type="hidden" name="_token" id="csrf-token" value="{{ Session::token() }}" />
  38.     </form>
  39. </section>
  40. @endsection
Add Comment
Please, Sign In to add comment