<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <title>نتیجه</title>
    <!-- BEGIN: Theme CSS-->
    <link rel="stylesheet" type="text/css" href="{{asset('')}}app-assets/vendors/css/vendors-rtl.min.css">
    <link rel="stylesheet" type="text/css" href="{{asset('')}}app-assets/fonts/simple-line-icons/style.min.css">
    <link rel="stylesheet" type="text/css" href="{{asset('')}}app-assets/css-rtl/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="{{asset('')}}app-assets/css-rtl/bootstrap-extended.min.css">
    <link rel="stylesheet" type="text/css" href="{{asset('')}}app-assets/css-rtl/components.css">
    <!-- END: Theme CSS-->
</head>

<body>
<div class="text-center box-payment-telegram @if($result->status == true) border-success @endif" style="padding: 53px 0; ">

    @if($result->status == true)


            <img src="{{asset('')}}app-assets/images/success.png" width="130px">
            <h2 class="mt-2">پرداخت با موفقیت انجام شد!</h2>
            <div class="table-responsive">
                <table class="table table-bordered col-md-8 mx-auto mt-3">
                    <tbody>
                    <tr>
                        <th scope="row">کد ووچرز</th>
                        <td class="sans-serif text-right cursor-pointer" data-toggle="tooltip"
                            data-original-title="کلیک و کپی" onclick="copyToClipboard(this)">
                            <i class="ft-copy"></i> <span>{{$PSVouchers->vouchercode}}</span>
                        </td>
                    </tr>
                    @if(isset($result->RefID))
                        <tr>
                            <th scope="row">کد پیگیری خرید</th>
                            <td class="sans-serif text-center cursor-pointer">
                                <span>{{$result->RefID}}</span>
                            </td>
                        </tr>
                    @endif
                    <tr>
                        <th scope="row">تاریخ پرداخت</th>
                        <td class="text-center">
                            <span>{{$result->date}}</span>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
            <div class=" mt-4">
                <a class="btn btn-primary round" href="tg://">بازگشت به ربات</a>
                <a class="btn btn-primary round"
                   href="{{asset('')}}orders">سفارشات</a>
            </div>

        </div>
    @elseif($result->status == false)
        <div class="card-body h-500px text-center">
            <img src="{{asset('')}}app-assets/images/error.png" width="130px">
            <h3 class="mt-3">{!!$result->message!!}</h3>
            <div class="mt-4">
                <a class="btn btn-primary round" href="tg://">بازگشت به ربات</a>
                <a class="btn btn-primary round" href="{{asset('')}}ticket">پشتیبانی</a>
            </div>
        </div>
    @endif





</div>
<script src="{{asset('')}}app-assets/vendors/js/vendors.min.js" type="text/javascript"></script>
<script src="{{asset('')}}app-assets/js/core/app.js?v=1.0.0" type="text/javascript"></script>
<script>
    $('[data-toggle="tooltip"]').tooltip()
</script>
</body>

