@extends('user.orders.single')

        @section('orders_model')
        <img src="{{asset('')}}app-assets/images/currency/Bitcoin.svg" style="position: absolute;width: 13%;left: 20px;top: 20px;">
        <hr width="60%">
        <p>فهرست محصولات / خدمات درخواستی</p>
        <div class="table-responsive">
            <table class="table table-bordered">
                <thead class="">

                <tr>
                    <th class="text-center">#</th>
                    <th class="text-center w-60">شرح</th>
                    <th class="text-center">مقدار / تعداد</th>
                    <th class="text-center">قیمت واحد</th>
                    <th class="text-center">مبلغ کل</th>
                </tr>
                </thead>
                <tbody class="text-center">
                    <tr>
                        <td scope="row" class="sans-serif">1</td>
                        <td>{{$result->order->detail->type .' '. $result->order->detail->title}}</td>
                        <td>{{$result->order->detail->amount_dollar}}{{$result->order->detail->dollar}} </td>
                        <td>{{number_format($result->orders_model->price_dollar)}}</td>
                        <td>{{number_format($result->orders_model->amount_rial - $result->orders_model->transfer_fee)}}</td>
                    </tr>
                    @if($result->orders_model->type =='buy')
                    <tr>
                        <td scope="row" class="sans-serif">2</td>
                        <td>هزینه انتقال</td>
                        <td>0.0005{{$result->order->detail->dollar}} </td>
                        <td>{{number_format($result->orders_model->price_dollar)}}</td>
                        <td>{{number_format($result->orders_model->transfer_fee)}}</td>
                    </tr>
                    <tr>
                        <td colspan="4" class="sans-serif border-0"></td>
                        <td>{{number_format($result->orders_model->amount_rial)}}</td>
                    </tr>
                    @endif
                    <tr class="border-0">
                        <th class="border-0"></th>
                    </tr>
                    @if($result->orders_model->type =='buy')
                    <tr>
                        <td class="border-0"></td>
                        <th class="w-60">آدرس  کیف پول گیرنده</th>
                        <td colspan="4" class="sans-serif cursor-pointer" data-toggle="tooltip" data-original-title="کلیک و کپی" onclick="copyToClipboard(this)">
                            <i class="ft-copy"></i>  <span>{{$result->orders_model->destination}}</span>
                        </td>
                    </tr>
                    @else
                        <tr>
                            <td class="border-0"></td>
                            <th class="w-60">TxID</th>
                            <td colspan="4" class="sans-serif cursor-pointer" data-toggle="tooltip" data-original-title="کلیک و کپی" onclick="copyToClipboard(this)">
                                <i class="ft-copy"></i>  <span>{{$result->orders_model->TxID}}</span>
                            </td>
                        </tr>
                    @endif
                    @if(isset($result->order->payment_tracking))
                        <tr>
                            <td class="border-0"></td>
                            <th scope="row">کد پیگیری درگاه پرداخت</th>
                            <td colspan="4" class="sans-serif">
                                <span>{{$result->order->payment_tracking}}</span>
                            </td>
                        </tr>
                    @endif
                </tbody>
            </table>
        </div>
        @stop
