@php 
    use Application\Session;
    include 'corporate-details.php';
    $sessionData = Session::all();
    $total = 0;
    $step2Price = 0; 
    $quantity = 0;
@endphp
<!DOCTYPE html>
<html lang="en">
<head>
    <title>ATTENTION: Patriots</title>
  @php require_once 'app/general/__header__.tpl' @endphp
	<page-builder-block>
        <link rel="icon" href="favicon.ico">
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
        <link rel="stylesheet" href="@php echo $path['css']; @endphp/owl.carousel.css">
        <link href="@php echo $path['css']; @endphp/animation.css" rel="stylesheet" type="text/css" />
        <link href="@php echo $path['css']; @endphp/bootstrap.css" rel="stylesheet" type="text/css" />
        <link href="@php echo $path['css']; @endphp/style.css" rel="stylesheet" type="text/css" />
        <span id="builderCssToken"></span>
    </page-builder-block>
    <script type="text/javascript">
    (function(c,l,a,r,i,t,y){
        c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};
        t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;
        y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);
    })(window, document, "clarity", "script", "j08z0mg77n");
</script>
</head>
<body>
  @php perform_body_tag_open_actions(); @endphp
    @php 
        $total = $total + $sessionData['steps']['1']['products']['0']['productPrice'];
        if(in_array($sessionData['steps']['1']['products']['0']['productId'],[348,579,586]))
            $quantity = 1;
        elseif(in_array($sessionData['steps']['1']['products']['0']['productId'],[349,580,587]))
            $quantity = 3;
        elseif(in_array($sessionData['steps']['1']['products']['0']['productId'],[350,581,588]))
            $quantity = 5;
    @endphp
    <div class="section banner thankyoubanner">
    <div class="container">
        <div class="row align-items-center">
        <div class="col-xl-8 col-lg-7 col-md-6 col-sm-12 col-12 order-2 order-md-1">
            <div class="bannercontent thankyoucontent pl-0">
            <div class="starsec"><img src="@php echo $path['images']; @endphp/star.png" width="70" height="11" alt=""><span>Rated by Thousands of Proud Americans!</span></div>
            <h1>Thank you for your order!</h1>
            <p>Your order number #@php echo  $steps['1']['orderId']; @endphp is currently being processed, please check your email for your order confirmation</p>
            <p></p>
            <div class="bannertesti">
                <div class="bannerimg wow zoomIn" style="visibility: visible; animation-name: zoomIn;"><img src="@php echo $path['images']; @endphp/trumphimg.png" alt="" width="100" height="100"></div>
                <div class="bannertestitext"> “We are going to Take America Back — and I'll add: <strong>greater than ever before.</strong>”
                <div class="bannertestiauthor"> Donald Trump <span>45th U.S. President</span> </div>
                </div>
            </div>
            </div>
        </div>
        <div class="col-xl-4 col-lg-5 col-md-6 col-sm-12 col-12 order-1 order-md-2">
            <div class="order-box mt-0">
            <h4>Your Order</h4>
            <div class="row align-items-center">
                <div class="col-xl-4 col-lg-4 col-md-12 col-sm-4 col-12">
                <div class="cartimg"><img src="@php echo $path['images']; @endphp/2024TABFlag.png" alt="" width="163" height="126"></div>
                </div>
                <div class="col-xl-8 col-lg-8 col-md-12 col-sm-8 col-12">
                <div class="carttext">
                    <p class="m-0">@php echo $quantity; @endphpx Donald Trump for President <strong>HUGE</strong> 3x5 Feet Printed Flag Take America Back with Grommets</p>
                    <div class="orderprice">$@php echo $sessionData['steps']['1']['products']['0']['productPrice'] @endphp</div>
                </div>
                </div>
            </div>
            <div class="ordertableouter">
                <table>
                <tbody>
                    <!--<tr>
                        <td>
                            @php if(in_array($sessionData['steps']['1']['products']['1']['productId'],[575,576,582,583,589,590])){ 
                                $step2Price = $sessionData['steps']['1']['products']['1']['productPrice'] * $quantity;
                            @endphp
                                <div class="tablelabel">Lifetime Flag Protection - @php echo $quantity; @endphpx</div>
                            @php } 
                            if(in_array($sessionData['steps']['1']['products']['1']['productId'],[577,584,591])){ 
                                $step2Price = $sessionData['steps']['1']['products']['1']['productPrice'];
                            @endphp
                                <div class="tablelabel">Express Shipping</div>
                            @php }
                            $total = $total + $step2Price;
                            @endphp
                        </td>
                        <td>
                            <div class="tableprice">
                            @php 
                                if(in_array($sessionData['steps']['1']['products']['1']['productId'],[575,576,582,583,589,590])){
                                    echo '$'.$step2Price;
                                }
                                else{
                                    echo '$'.$step2Price;
                                }
                            @endphp
                            </div>
                        </td>
                    </tr>-->
                    @php if($sessionData['steps']['1']['products']['2']){ 
                        $total = $total +$sessionData['steps']['1']['products']['2']['productPrice'];
                    @endphp
                    <!--<tr>
                        <td>
                            <div class="tablelabel">Express Shipping</div>
                        </td>
                        <td>
                            <div class="tableprice">
                                $@php echo $sessionData['steps']['1']['products']['2']['productPrice'] @endphp
                            </div>
                        </td>
                    </tr>-->
                    @php } @endphp

                    <tr>
                    <td><div class="tablelabel">Subtotal</div></td>
                    <td><div class="tableprice">$@php echo $sessionData['steps']['1']['products']['0']['productPrice'] @endphp</div></td>
                    </tr>

                    <tr>
                    <td><div class="tablelabel">Shipping</div></td>
                    <td><div class="tableprice">$0.00</div></td>
                    </tr>
                    <!--<tr>
                    <td><div class="tablelabel">Savings</div></td>
                    <td><div class="tableprice">$79.97</div></td>
                    </tr>-->
                    <tr>
                    <td class="pb-0"><div class="tablelabel">Total Price</div></td>
                    <td class="pb-0"><div class="tableprice"><strong>$@php echo $total @endphp</strong></div></td>
                    </tr>
                </tbody>
                </table>
            </div>
            </div>
        </div>
        </div>
    </div>
    </div>
    <div class="section greysec">
    <div class="container">
        <div class="row align-items-center">
        <div class="col-xl-4 col-lg-4 col-md-6 col-sm-12 col-12">
            <div class="greybox"> <img class="wow zoomIn" src="@php echo $path['images']; @endphp/greyicon1.png" width="90" height="75" alt="">
            <div class="greytext">
                <h6>US Seller</h6>
                <p>We ship from US to all 50 states</p>
            </div>
            </div>
        </div>
        <div class="col-xl-4 col-lg-4 col-md-6 col-sm-12 col-12">
            <div class="greybox"> <img class="wow zoomIn" src="@php echo $path['images']; @endphp/greyicon2.png" width="95" height="67" alt="">
            <div class="greytext">
                <h6>Fast Shipping</h6>
                <p>All items ship within 1-2 business days</p>
            </div>
            </div>
        </div>
        <div class="col-xl-4 col-lg-4 col-md-6 col-sm-12 col-12 offset-md-3 offset-lg-0">
            <div class="greybox"> <img class="wow zoomIn" src="@php echo $path['images']; @endphp/greyicon3.png" width="90" height="75" alt="">
            <div class="greytext">
                <h6>Money Back Guarantee</h6>
                <p>Customer Satisfaction or <span class="d-lg-block d-xl-inline">your money back!</span></p>
            </div>
            </div>
        </div>
        </div>
    </div>
    </div>
    <div class="footer">
    <div class="container">
        <div class="row align-items-center">
        <div class="col-xl-6">
            <div class="copyright">Copyright @php echo date('Y') @endphp. All Rights Reserved.</div>
        </div>
        <div class="col-xl-6">
            <div class="footlink">
            <a href="javascript:void(0);" onClick="javascript:openNewWindow('page-terms.php','modal');">Terms and Conditions</a> <span>|</span> 
            <a href="javascript:void(0);" onClick="javascript:openNewWindow('page-refund.php','modal');">Return Policy</a> <span>|</span>
            <a href="javascript:void(0);" onclick="javascript:openNewWindow('page-privacy.php', 'modal');">Privacy Policy</a> <span>|</span> 
            <a href="javascript:void(0);" onclick="javascript:openNewWindow('page-contact.php', 'modal');">Contact Us</a>
            </div>
        </div>
        </div>
    </div>
    </div>
    <p id="loading-indicator" style="display:none;">Processing...</p>
    @php require_once 'app/general/__scripts__.tpl' @endphp
    @php require_once 'app/general/__analytics__.tpl' @endphp
    @php perform_body_tag_close_actions(); @endphp
    <!--<script src="@php echo $path['js']; @endphp/bootstrap.js"></script>
    <script src="@php echo $path['js']; @endphp/wow.js"></script>
    <script src="@php echo $path['js']; @endphp/owl.carousel.js"></script>
    <script src="@php echo $path['js']; @endphp/script.js"></script>-->
    <script src="@php echo $path['js']; @endphp/custom.js"></script>
</body>
</html>
