phpist

Untitled

Oct 2nd, 2019
619
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.99 KB | None | 0 0
  1. @extends('layout')
  2.  
  3. @section('content')
  4. <!--main content start-->
  5. <div class="main-content">
  6. <div class="container">
  7. <div class="row">
  8. <div class="col-md-8">
  9. @foreach($posts as $post)
  10. <article class="post">
  11. <div class="post-thumb">
  12. <a href="{{route('post.show', $post->slug)}}"><img src="{{$post->getImage()}}" alt=""></a>
  13.  
  14. <a href="{{route('post.show', $post->slug)}}" class="post-thumb-overlay text-center">
  15. <div class="text-uppercase text-center">View Post</div>
  16. </a>
  17. </div>
  18. <div class="post-content">
  19. <header class="entry-header text-center text-uppercase">
  20. @if($post->hasCategory())
  21. <h6><a href="{{route('category.show', $post->category->slug)}}"> {{$post->getCategoryTitle()}}</a></h6>
  22. @endif
  23. <h1 class="entry-title"><a href="{{route('post.show', $post->slug)}}">{{$post->title}}</a></h1>
  24.  
  25.  
  26. </header>
  27. <div class="entry-content">
  28. {!!$post->description!!}
  29.  
  30. <div class="btn-continue-reading text-center text-uppercase">
  31. <a href="{{route('post.show', $post->slug)}}" class="more-link">Continue Reading</a>
  32. </div>
  33. </div>
  34. <div class="social-share">
  35. <span class="social-share-title pull-left text-capitalize">By <a href="#">{{$post->author->name}}</a> On {{$post->getDate()}}</span>
  36.  
  37. <ul class="text-center pull-right">
  38. <li><a class="s-facebook" href="#"><i class="fa fa-facebook"></i></a></li>
  39. <li><a class="s-twitter" href="#"><i class="fa fa-twitter"></i></a></li>
  40. <li><a class="s-google-plus" href="#"><i class="fa fa-google-plus"></i></a></li>
  41. <li><a class="s-linkedin" href="#"><i class="fa fa-linkedin"></i></a></li>
  42. <li><a class="s-instagram" href="#"><i class="fa fa-instagram"></i></a></li>
  43. </ul>
  44. </div>
  45. </div>
  46. </article>
  47. @endforeach
  48.  
  49. {{$posts->links()}}
  50. </div>
  51. @include('pages._sidebar')
  52. </div>
  53. </div>
  54. </div>
  55. <!-- end main content-->
  56. @endsection
Advertisement
Add Comment
Please, Sign In to add comment