Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.78 KB | None | 0 0
  1. @extends('store.template')
  2.  
  3. @section('content')
  4. <div class="container text-center">
  5.  
  6. <div class="table-cart">
  7. <p>
  8. <a href="{{route ('cart-trash')}}" class="btn btn-danger">
  9. Vaciar carrito<i class="fa fa-trash"></i>
  10. </a>
  11. </p>
  12. <div class="table-responsive">
  13. <table class="table striped table-hover table-bordered">
  14. <thead>
  15. <tr>
  16. <th>Imagen</th>
  17. <th>Comic</th>
  18. <th>Precio</th>
  19. <th>Cantidad</th>
  20. <th>Subtotal</th>
  21. <th>Quitar</th>
  22. </tr>
  23. </thead>
  24. <tbody>
  25. @foreach ($cart as $item)
  26. <tr>
  27. <td><img src="{{ $item->image }}"></td>
  28. <td>{{ $item->name }}</td>
  29. <td>{{ number_format($item->price,2) }}</td>
  30. <td>{{ $item->quantity }}</td>
  31. <td>{{ number_format($item->price * $item->quantity,2)}}</td>
  32. <td><a href="{{ route('cart-delete', $item->slug) }}" class="btn btn-danger">
  33. <i class="fa fa-remove"></i>
  34. </a>
  35. </td>
  36. </tr>
  37. @endforeach
  38. </tbody>
  39. </table>
  40. </div>
  41. <hr>
  42. <p>
  43. <a href="{{route('home')}}" class="btn btn-primary">
  44. <i class="fa fa-chevron-circle-right"></i>Continuar
  45. </a>
  46.  
  47. </p>
  48. </div>
  49.  
  50. </div>
  51. @stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement