Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @extends('store.template')
- @section('content')
- <div class="container text-center">
- <div class="table-cart">
- <p>
- <a href="{{route ('cart-trash')}}" class="btn btn-danger">
- Vaciar carrito<i class="fa fa-trash"></i>
- </a>
- </p>
- <div class="table-responsive">
- <table class="table striped table-hover table-bordered">
- <thead>
- <tr>
- <th>Imagen</th>
- <th>Comic</th>
- <th>Precio</th>
- <th>Cantidad</th>
- <th>Subtotal</th>
- <th>Quitar</th>
- </tr>
- </thead>
- <tbody>
- @foreach ($cart as $item)
- <tr>
- <td><img src="{{ $item->image }}"></td>
- <td>{{ $item->name }}</td>
- <td>{{ number_format($item->price,2) }}</td>
- <td>{{ $item->quantity }}</td>
- <td>{{ number_format($item->price * $item->quantity,2)}}</td>
- <td><a href="{{ route('cart-delete', $item->slug) }}" class="btn btn-danger">
- <i class="fa fa-remove"></i>
- </a>
- </td>
- </tr>
- @endforeach
- </tbody>
- </table>
- </div>
- <hr>
- <p>
- <a href="{{route('home')}}" class="btn btn-primary">
- <i class="fa fa-chevron-circle-right"></i>Continuar
- </a>
- </p>
- </div>
- </div>
- @stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement