@extends('merchbay_main')

@section('main-content')
<style>
    iframe {
        width: 100%;
        height: 100vh;
    }
</style>
<div class="wrapper pb-5">
    <div class="main__content">
        <div class="container">
            <div class="row">
                <div class="col col-lg-12 pt-5 text-center text-lg-start">
                    <h4>Track Order</h4>
                    <hr class="custom-hr" />
                </div>
            </div>
            <div class="row">
                <div class="col col-lg-12">
                    @if (Auth::guest())
                    Please login <a href="{{ url('auth/login?redirectUrl=') }}{{ URL::full() }}" class="text-decoration-underline">here</a> to track your order.
                    @else
                    <div class="border rounded-2 p-2 mb-3">
                        <strong>Note:</strong> Order tracking is only available for orders placed after December 03, 2021. 
                    </div>
                    <iframe src="https://crewsportswear.app:8092/?id={{ $userId }}" frameborder="0"></iframe>
                    <!-- <iframe src="http://localhost:8011/?id={{ $userId }}" frameborder="0"></iframe> -->
                    @endif

                </div>
            </div>
        </div>
    </div>
</div>
@endsection