{{>header}}
<title>Refund Requests</title>
<div class="row p-2" style="margin: 0px !important;">
    <div class="col-md-12">
        <div class="card mt-2">
            <div class="card-header" style="background-color:white; color:#4B0F77;">
                <h4><b>Refund Requests</b></h4>
            </div>
            <div class="card-body p-2">
                <div id="example1_wrapper">
                    <div class="row">
                        <div class="col-sm-12">
                           <div class="table-responsive">
                             <table id="example4" class="table table-bordered table-striped"  aria-describedby="example1_info">
                                <thead>
                                    <tr>
                                        <th class="sorting" tabindex="0" aria-controls="example1">S.No</th>
                                        <th class="sorting" tabindex="0" aria-controls="example1">Order ID</th>
                                        <th class="sorting" tabindex="0" aria-controls="example1">User</th>
                                        <th class="sorting" tabindex="0" aria-controls="example1">User Email</th>
                                        <th class="sorting" tabindex="0" aria-controls="example1">User Phone</th>
                                        <th class="sorting" tabindex="0" aria-controls="example1">address</th>
                                        <th class="sorting" tabindex="0" aria-controls="example1">Receiver Name</th>
                                        <th class="sorting" tabindex="0" aria-controls="example1">Receiver Phone</th>
                                        <th class="sorting" tabindex="0" aria-controls="example1">Community Name</th>
                                        <th class="sorting" tabindex="0" aria-controls="example1">Vendor Name</th>
                                        <th class="sorting" tabindex="0" aria-controls="example1">Vendor Email</th>
                                        <th class="sorting" tabindex="0" aria-controls="example1">Vendor Phone</th>
                                        {{!-- <th class="sorting" tabindex="0" aria-controls="example1">Razorpay Order Id</th> --}}
                                        <th class="sorting" tabindex="0" aria-controls="example1">Razorpay Payment Id</th>
                                        <th class="sorting" tabindex="0" aria-controls="example1">Status</th>
                                        <th class="sorting" tabindex="0" aria-controls="example1">Action</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    {{#each allRefundRequests}}
                                    <tr class="odd">
                                        <td>{{inc @index}}</td>
                                        <td>{{this.order.orderId}}</td>
                                        <td>{{this.order.firstName}} {{this.order.lastName}}</td>
                                        <td>{{this.order.userEmail}}</td>
                                        <td>{{this.order.userPhone}}</td>
                                        <td>{{this.order.buildingName}} {{this.order.blockNameOrNumber}} {{this.order.flatNameOrNumber}}</td>
                                        <td>{{this.order.receiverName}}</td>
                                        <td>{{this.order.receiverPhone}}</td>
                                        <td>{{this.order.communityName}}</td>
                                        <td>{{this.order.vendorName}}</td>
                                        <td>{{this.order.vendorEmail}}</td>
                                        <td>{{this.order.vendorPhone}}</td>
                                        {{!-- <td>{{this.order.razorpayOrderId}}</td> --}}
                                        <td>{{this.order.razorpayPaymentId}}</td>
                                        <td>{{this.status}}</td>
                                        <td>
                                            <div class="eye d-flex justify-content-center">
                                                <a href="/admin/v1/singlerefund/{{this._id}}"
                                                    class="btn btn-md btn-info m-1">
                                                    <i class="fas fa-eye"></i>
                                                </a>
                                                {{!-- <a href="javascript:void(0);" data-bs-toggle="modal"
                                                    data-bs-target="#updateModal" class="btn btn-md btn-warning m-1"
                                                    data-id="{{this._id}}" data-name="{{this.name}}"
                                                    data-status="{{this.status}}">
                                                    <i class="fa-solid fa-edit"></i>
                                                </a>
                                                <a href="javascript:void(0);" data-bs-toggle="modal"
                                                    data-id="{{this._id}}" data-bs-target="#deleteModal"
                                                    class="btn btn-md btn-danger m-1">
                                                    <i class="fa-solid fa-trash"></i>
                                                </a> --}}
                                            </div>
                                        </td>
                                    </tr>
                                    {{/each}}
                                </tbody>
                            </table>
                           </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
{{>footer}}

</html>