




<?php $__env->startSection('content'); ?>

<!-- Breadcrumb Area Start -->
<div class="breadcrumb-area">
  <div class="container">
    <div class="row">
      <div class="col-lg-12">
        <ul class="pages">
          <li>
            <a href="<?php echo e(route('front.index')); ?>">
              <?php echo e($langg->lang17); ?>

            </a>
          </li>
          <li>
            <a href="<?php echo e(route('payment.return')); ?>">
              <?php echo e($langg->lang169); ?>

            </a>
          </li>
        </ul>
      </div>
    </div>
  </div>
</div>
<!-- Breadcrumb Area End -->







<section class="tempcart">

<?php if(!empty($tempcart)): ?>

        <div class="container">
            <div class="row justify-content-center">
                <div class="col-lg-10">
                    <!-- Starting of Dashboard data-table area -->
                    <div class="content-box section-padding add-product-1">
                        <div class="top-area">
                                <div class="content">
                                    <h4 class="heading">
                                        <?php echo e($langg->order_title); ?>

                                    </h4>
                                    <p class="text">
                                        <?php echo e($langg->order_text); ?>

                                    </p>
                                    <a href="<?php echo e(route('front.index')); ?>" class="link"><?php echo e($langg->lang170); ?></a>
                                  </div>
                        </div>
                        <div class="row">
                            <div class="col-lg-12">

                                    <div class="product__header">
                                        <div class="row reorder-xs">
                                            <div class="col-lg-12">
                                                <div class="product-header-title">
                                                    <h2><?php echo e($langg->lang285); ?> <?php echo e($order->order_number); ?></h2>
                                        </div>   
                                    </div>
                                        <?php echo $__env->make('includes.form-success', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                                            <div class="col-md-12" id="tempview">
                                                <div class="dashboard-content">
                                                    <div class="view-order-page" id="print">
                                                        <p class="order-date"><?php echo e($langg->lang301); ?> <?php echo e(date('d-M-Y',strtotime($order->created_at))); ?></p>


                                                <?php if($order->dp == 1): ?>

                                                        <div class="billing-add-area">
                                                            <div class="row">
                                                                <div class="col-md-6">
                                                                    <h5><?php echo e($langg->lang287); ?></h5>
                                                                    <address>
                                                                        <?php echo e($langg->lang288); ?> <?php echo e($order->customer_name); ?><br>
                                                                        <?php echo e($langg->lang289); ?> <?php echo e($order->customer_email); ?><br>
                                                                        <?php echo e($langg->lang290); ?> <?php echo e($order->customer_phone); ?><br>
                                                                        <?php echo e($langg->lang291); ?> <?php echo e($order->customer_address); ?><br>
                                                                        <?php echo e($order->customer_city); ?>-<?php echo e($order->customer_zip); ?>

                                                                    </address>
                                                                </div>
                                                                <div class="col-md-6">
                                                                    <h5><?php echo e($langg->lang292); ?></h5>
                                                                    <p><?php echo e($langg->lang293); ?> <?php echo e(PriceHelper::showOrderCurrencyPrice(round(($order->pay_amount + $order->wallet_price)  * $order->currency_value , 2),$order->currency_sign)); ?></p>
                                                                    <p><?php echo e($langg->lang294); ?> <?php echo e($order->method); ?></p>

                                                                    <?php if($order->method != "Cash On Delivery"): ?>
                                                                        <?php if($order->method=="Stripe"): ?>
                                                                            <?php echo e($order->method); ?> <?php echo e($langg->lang295); ?> <p><?php echo e($order->charge_id); ?></p>
                                                                        <?php endif; ?>
                                                                        <?php echo e($order->method); ?> <?php echo e($langg->lang296); ?> <p id="ttn"><?php echo e($order->txnid); ?></p>

                                                                    <?php endif; ?>
                                                                </div>
                                                            </div>
                                                        </div>

                                                    <?php else: ?>
                                                        <div class="shipping-add-area">
                                                            <div class="row">
                                                                <div class="col-md-6">
                                                                    <?php if($order->shipping == "shipto"): ?>
                                                                        <h5><?php echo e($langg->lang302); ?></h5>
                                                                        <address>
                                                                            <?php echo e($langg->lang288); ?> <?php echo e($order->shipping_name == null ? $order->customer_name : $order->shipping_name); ?><br>
                                                                            <?php echo e($langg->lang289); ?> <?php echo e($order->shipping_email == null ? $order->customer_email : $order->shipping_email); ?><br>
                                                                            <?php echo e($langg->lang290); ?> <?php echo e($order->shipping_phone == null ? $order->customer_phone : $order->shipping_phone); ?><br>
                                                                            <?php echo e($langg->lang291); ?> <?php echo e($order->shipping_address == null ? $order->customer_address : $order->shipping_address); ?><br>
                                                                            <?php echo e($order->shipping_city == null ? $order->customer_city : $order->shipping_city); ?>-<?php echo e($order->shipping_zip == null ? $order->customer_zip : $order->shipping_zip); ?>

                                                                        </address>
                                                                    <?php else: ?>
                                                                        <h5><?php echo e($langg->lang303); ?></h5>
                                                                        <address>
                                                                            <?php echo e($langg->lang304); ?> <?php echo e($order->pickup_location); ?><br>
                                                                        </address>
                                                                    <?php endif; ?>

                                                                </div>
                                                                <div class="col-md-6">
                                                                    <h5><?php echo e($langg->lang305); ?></h5>
                                                                    <?php if($order->shipping == "shipto"): ?>
                                                                        <p><?php echo e($langg->lang306); ?></p>
                                                                    <?php else: ?>
                                                                        <p><?php echo e($langg->lang307); ?></p>
                                                                    <?php endif; ?>
                                                                    <?php if($order->shipping_cost != 0): ?>
                                                                        <?php 
                                                                        $price = round(($order->shipping_cost / $order->currency_value),2);
                                                                        ?>
                                                                        <?php if(DB::table('shippings')->where('price','=',$price)->count() > 0): ?>
                                                                <p>
                                                                    <?php echo e(DB::table('shippings')->where('price','=',$price)->first()->title); ?>:
                                                                    <?php echo e(PriceHelper::showOrderCurrencyPrice(round($order->shipping_cost, 2),$order->currency_sign)); ?>

                                                                   
                                                                </p>
                                                                        <?php endif; ?>
                                                                    <?php endif; ?>

                                                                    <?php if($order->packing_cost != 0): ?>

                                                                        <?php 
                                                                        $pprice = round(($order->packing_cost / $order->currency_value),2);
                                                                        ?>


                                                                        <?php if(DB::table('packages')->where('price','=',$pprice)->count() > 0): ?>
                                                                <p>
                                                                    <?php echo e(DB::table('packages')->where('price','=',$pprice)->first()->title); ?>: <?php echo e(PriceHelper::showOrderCurrencyPrice(round($order->packing_cost, 2),$order->currency_sign)); ?>

                                                                </p>
                                                                        <?php endif; ?>
                                                                    <?php endif; ?>

                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="billing-add-area">
                                                            <div class="row">
                                                                <div class="col-md-6">
                                                                    <h5><?php echo e($langg->lang287); ?></h5>
                                                                    <address>
                                                                        <?php echo e($langg->lang288); ?> <?php echo e($order->customer_name); ?><br>
                                                                        <?php echo e($langg->lang289); ?> <?php echo e($order->customer_email); ?><br>
                                                                        <?php echo e($langg->lang290); ?> <?php echo e($order->customer_phone); ?><br>
                                                                        <?php echo e($langg->lang291); ?> <?php echo e($order->customer_address); ?><br>
                                                                        <?php echo e($order->customer_city); ?>-<?php echo e($order->customer_zip); ?>

                                                                    </address>
                                                                </div>
                                                                <div class="col-md-6">
                                                                    <h5><?php echo e($langg->lang292); ?></h5>
                                                                    <p><?php echo e($langg->lang293); ?> <?php echo e(PriceHelper::showOrderCurrencyPrice(round(($order->pay_amount + $order->wallet_price)  * $order->currency_value , 2),$order->currency_sign)); ?></p>
                                                                    <p><?php echo e($langg->lang294); ?> <?php echo e($order->method); ?></p>

                                                                    <?php if($order->method != "Cash On Delivery" && $order->method != "Wallet"): ?>
                                                                        <?php if($order->method=="Stripe"): ?>
                                                                            <?php echo e($order->method); ?> <?php echo e($langg->lang295); ?> <p><?php echo e($order->charge_id); ?></p>
                                                                        <?php endif; ?>
                                                                        <?php echo e($order->method); ?> <?php echo e($langg->lang296); ?> <p id="ttn"><?php echo e($order->txnid); ?></p>

                                                                    <?php endif; ?>
                                                                </div>
                                                            </div>
                                                        </div>
<?php endif; ?>
                                                        <br>
                                                        <div class="table-responsive">
                            <table  class="table">
                                <h4 class="text-center"><?php echo e($langg->lang308); ?></h4>
                                <thead>
                                <tr>

                                    <th width="60%"><?php echo e($langg->lang310); ?></th>
                                    <th width="20%"><?php echo e($langg->lang539); ?></th>
                                    <th width="10%"><?php echo e($langg->lang314); ?></th>
                                    <th width="10%"><?php echo e($langg->lang315); ?></th>
                                </tr>
                                </thead>
                                <tbody>

                                <?php $__currentLoopData = $tempcart->items; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <tr>

                                            <td><?php echo e($product['item']['name']); ?></td>
                                            <td>
                                                <b><?php echo e($langg->lang311); ?></b>: <?php echo e($product['qty']); ?> <br>
                                                <?php if(!empty($product['size'])): ?>
                                                <b><?php echo e($langg->lang312); ?></b>: <?php echo e($product['item']['measure']); ?><?php echo e(str_replace('-',' ',$product['size'])); ?> <br>
                                                <?php endif; ?>
                                                <?php if(!empty($product['color'])): ?>
                                                <div class="d-flex mt-2">
                                                <b><?php echo e($langg->lang313); ?></b>:  <span id="color-bar" style="border: 10px solid #<?php echo e($product['color'] == "" ? "white" : $product['color']); ?>;"></span>
                                                </div>
                                                <?php endif; ?>

                                                    <?php if(!empty($product['keys'])): ?>

                                                    <?php $__currentLoopData = array_combine(explode(',', $product['keys']), explode(',', $product['values'])); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

                                                        <b><?php echo e(ucwords(str_replace('_', ' ', $key))); ?> : </b> <?php echo e($value); ?> <br>
                                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                                                    <?php endif; ?>

                                                  </td>
                                            <td><?php echo e($order->currency_sign); ?><?php echo e(round($product['item_price'] * $order->currency_value,2)); ?></td>
                                            <td><?php echo e($order->currency_sign); ?><?php echo e(round($product['price'] * $order->currency_value,2)); ?></td>

                                    </tr>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>



                                </tbody>
                            </table>

                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                    </div>
                                </div>

                        </div>
                    </div>
                </div>
                <!-- Ending of Dashboard data-table area -->
            </div>

<?php endif; ?>

  </section>

<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.front', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/u834843299/domains/agreeme.in/public_html/demo/ecomsingle/project/resources/views/front/success.blade.php ENDPATH**/ ?>