@extends('layouts.app2')

@section('content')
    <div class="container">
        <div class="card card-primary">
            <aside class="panel panel-default">
                <div class="panel-heading">
                    <a href="{{route('checkout')}}" class="btn btn-raised btn-primary">Checkout</a>
                    <hr/>
                    <h3 class="text-center">Shopping Cart</h3>
                </div>
                @include('includes.flash')
                <div class="panel-body load_item" id="cart_items">
                    @include('shop.load')
                </div>

                <div class="panel-footer">
                    @if(sizeof(Cart::content()) > 0)
                        <button class="pull-right btn btn-raised btn-warning" onclick="" id="clear">Clear Cart</button>
                        <a class="pull-right btn btn-danger btn-raised" href="{{route('checkout')}}">Checkout</a>
                    @endif
                    <a class="pull-left btn btn-danger btn-raised" href="{{route('mainShop')}}">Continue
                        Shopping</a>
                    <hr/>
                </div>
            </aside>
        </div>
    </div>
@endsection




















