Guest User

Untitled

a guest
Jan 19th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1. <template>
  2. <div class="card text-center" style="width: 18rem;">
  3. <img class="card-img-top" src="/img/card2.jpg" alt="Card image cap">
  4. <div class="card-body">
  5. <h5 class="card-title" v-text='this.title'></h5>
  6. <h6 class="card-subtitle mb-2 text-muted" v-text='this.category'></h6>
  7. <p class="card-text" v-html='this.description'></p>
  8. <a v-bind:href="'/'+this.category+'/'+this.id" class="btn btn-primary">Volle Ansicht</a>
  9. </div>
  10. </div>
  11. </template>
  12. <script>
  13. export default {
  14. props: ['category', 'title', 'category', 'description', 'id']
  15. }
  16. </script>
  17.  
  18. <!doctype html>
  19. <html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
  20. @include('includes.header')
  21. <body>
  22. <div id="app" class="wrapper">
  23. <nav-component></nav-component>
  24. <header-component></header-component>
  25. <header-sidebar-component></header-sidebar-component>
  26. <div class="container card-container">
  27. <div class=row>
  28. @foreach($sortedData as $data)
  29. <div class="col-md-4">
  30. <div class="card-group" style="padding-bottom: 2em">
  31. <cards id={{$data->id}} title={{$data->title}} category={{$data->category}} description={{$data->description}}></cards>
  32. </div>
  33. </div>
  34. @endforeach
  35. </div>
  36. </div>
  37. @include('includes.footer')
  38. </div>
  39. <script src="/js/app.js"></script>
  40. </body>
  41. </html>
Add Comment
Please, Sign In to add comment