@extends('web.layouts.layout')

@section('content')

    @if ($errors->any())
        <div class="row">
            <div class="col-sm-12">
                <div class="alert alert-danger">
                    <ul>
                        @foreach ($errors->all() as $error)
                            <li>{{ $error }}</li>
                        @endforeach
                    </ul>
                </div>
            </div>
        </div>
    @endif

    {!! Form::open(['action' => route('web_promotion_store', $promotion_user->id), 'class' => 'form-horizontal form-prevent-multiple-submits', 'id' => 'shop-form-validations']) !!}
    <input type="hidden" name="load_url" value="{{ route('web_promotion_modal_load') }}">
    <div class="layout-content">
        @include('web.promotion._intro')

        <div class="container px-3">
            @include('web.promotion._free_product')

            @include('web.promotion._shop_products')

            @include('web.promotion._shipping')

            @include('web.promotion._fairplay')

            <section id="user_cart_holder">
            @include('web.promotion._promotion_cart')
            </section>

            <section id="">
                @include('web.components._margin_cart')
           </section>

            <section>
                <div class="row">
                    <div class="col-lg-8 col-md-7">
                        <section id="invoice_details_holder">
                           @if(Yard::instance('shopping')->isQuickShipping())
                            @include('web.components._invoice_details_quick')
                           @else
                            @include('web.components._invoice_details')
                           @endif
                        </section>
                    </div>
                    <div class="col-lg-4 col-md-5">
                        <section id="user_checkout_holder">
                            @include('web.components._checkout')
                        </section>
                    </div>
                </div>
            </section>
        </div>
    </div>
    {!! Form::close() !!}

    <script>
        $(document).ready(function() {
            var iqShoppingShopCart = IqUserShopCart.init();
        });
    </script>
@endsection

@section('scripts')
    <script src="{{ asset('/js/iq-user-shop-cart.js') }}?v=2{{ get_file_last_time('/js/iq-user-shop-cart.js') }}"></script>
@endsection
