Commit f0d39ab7 authored by Artem's avatar Artem

add link to homepage after successfully placed order

parent 94b0a557
...@@ -74,6 +74,7 @@ ...@@ -74,6 +74,7 @@
@else @else
@if(isset($order_id)) @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> <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 @else
<div>There are no products in the cart. <a href="{{ route('homepage') }}">Check our products</a></div> <div>There are no products in the cart. <a href="{{ route('homepage') }}">Check our products</a></div>
@endif @endif
...@@ -83,6 +84,8 @@ ...@@ -83,6 +84,8 @@
</section> </section>
@endsection @endsection
@section('script') @if(Session::has('cart'))
<script src="js/cart.js" defer></script> @section('script')
@endsection <script src="js/cart.js" defer></script>
@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