@extends('user.layout.main')
@section('content')
    <div class="main-content">
        <section class="section">
            <div class="section-header">
                <h1>Halaman Refund</h1>
                <div class="section-header-breadcrumb">
                    <div class="breadcrumb-item active"><a href="#">Dashboard</a></div>
                    <div class="breadcrumb-item"><a href="#"> Transaction</a></div>
                    <div class="breadcrumb-item">Manajemen Kontak</div>
                    <div class="breadcrumb-item">Halaman Refund</div>
                </div>
            </div>

            <div class="row">
                <div class="col-md-12">
                    <div class="card">
                        <div class="card-body">
                            <div class="table-responsive">
                                <table class="table table-striped" id="table-1">
                                    <thead>
                                        <tr>
                                            <th class="text-center">
                                                #
                                            </th>
                                            <th>Order Id</th>
                                            <th>Customer</th>
                                            <th>Seller</th>
                                            <th>total</th>
                                            <th>Due Date</th>
                                            <th>Status</th>
                                            <th>upload Bukti</th>
                                            <th>Action</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        @foreach ($refundUserss as $key => $HistoryRefundUser)
                                            <tr>
                                                <td> {{ ++$key }}</td>
                                                <td class="font-weight-600">
                                                    {{ $HistoryRefundUser['orderId'] }}</td>
                                                <td class="font-weight-600">
                                                    {{ $HistoryRefundUser['Customer'] }}</td>
                                                <td class="font-weight-600">
                                                    {{ $HistoryRefundUser['seller'] }}</td>
                                                <td class="font-weight-600">
                                                    {{ $HistoryRefundUser['Total'] }}</td>
                                                <td>{{ $HistoryRefundUser['dueDate'] }}</td>

                                                <td class="font-weight-600">
                                                    <div class="badge badge-danger" data-status="ditolak"
                                                        onclick="setStatus('ditolak')">Ditolak</div>
                                                    {{-- {{ $HistoryRefundUser['status'] }} --}}
                                                    
                                                </td>
                                                <td class="font-weight-600">
                                                    {{ $HistoryRefundUser['uploadBukti'] }}</td>
                                                <td>
                                                    <button class="btn btn-info open-detail-modal" data-toggle="modal"
                                                        data-target="#awaldetailrefund">Detail</button>
                                                </td>
                                            </tr>
                                        @endforeach

                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
    </div>
    @extends('user.refund.detail-refund')
@endsection