<html>
    <head>
        <page-builder-block> 
        @php require_once '../app/general/__header__.tpl' @endphp
        @php require_once '../app/general/member-header.tpl' @endphp
        <link rel="stylesheet" href="<?= $path['assets_css'] . '/app.css' ?>" />
        <span id="builderCssToken">
        </span>
        </page-builder-block> 
    </head>
    <body>
        
        <form method="post" name="tracking_order" accept-charset="utf-8" enctype="application/x-www-form-urlencoded;charset=utf-8">
            <input type="hidden" id="status_code" value="@php echo (!empty($trackDetails['statusCode']) ? $trackDetails['statusCode'] : ''); @endphp" />
            @php
            if(empty($trackDetails)){
            @endphp
            <div class="row">
            <div class="col-sm-12">
            <p>
                <label>Tracking Number: </label>
                <input type="text" name="tracking_no" placeholder="Tracking Number" class="required" data-error-message="Please enter your first name!" />
            </p>
            <p>
                <button name="usps_track" type="button" class="btn btn-outline-primary">Track via USPS</button>
            </p>
            
            </div>
            </div>
            @php
            }
            @endphp
            <div class="col-sm-12">
                    <div class="row" >
                        <h3>Track Summary</h3>
                        <div class="col-sm-12" id="track_summary">@php echo !empty($trackDetails['trackSummary']) ? $trackDetails['trackSummary'] : 'No Data'; @endphp</div>
                    </div>

                    <div class="row" >
                        <h3>Track Details</h3>
                        <div class="col-sm-12" id="track_details">@php echo !empty($trackDetails['trackDetails']) ? $trackDetails['trackDetails'] : 'No Data'; @endphp</div>
                    </div>
            </div>
            <p id="loading-indicator" style="display:none;">Processing...</p>
        </form>
        
        @php require_once '../app/general/member-footer.tpl' @endphp
    </body>
</html>
