Commit f0d39ab7 authored by Artem's avatar Artem

add link to homepage after successfully placed order

parent 94b0a557
......@@ -74,6 +74,7 @@
@else
@if(isset($order_id))
<div class="alert alert-success">Thank you, order succesfully placed. Your order number is <b>{{ $order_id }}</b>. We will contact you shortly.</div>
<a href="{{ route('homepage') }}">You may like our other products</a>
@else
<div>There are no products in the cart. <a href="{{ route('homepage') }}">Check our products</a></div>
@endif
......@@ -83,6 +84,8 @@
</section>
@endsection
@section('script')
@if(Session::has('cart'))
@section('script')
<script src="js/cart.js" defer></script>
@endsection
@endsection
@endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment