@extends('layout.main')

@section('content')
    <div class="main-content">
        <section class="section">
            <div class="col-md-12">
                <div class="card">
                    <div class="card-header">
                        <h2>Detail Refund</h2>
                    </div>
                    @foreach ($detail_refund as $DetailRefund)
                        <div class="card-body p-0">
                            <div class="container">
                                <p><strong>Image/Video: </strong></p>
                                <img src="assets/images/dashboard/img_2.jpg" alt="Return Image" width="300">
                                <img src="assets/images/dashboard/img_3.jpg" alt="Return Image" width="300">
                                <img src="assets/images/dashboard/img_4.jpg" alt="Return Image" width="300"><br><br>
                                <p><strong>ID Order:</strong> {{ $DetailRefund['orderId'] }}</p>
                                <p><strong>Customer Name:</strong> {{ $DetailRefund['customer'] }}</p>
                                <p><strong>Seller Name:</strong> {{ $DetailRefund['seller'] }}</p>
                                <p><strong>Total:</strong> {{ $DetailRefund['total'] }}</p>
                                <p><strong>Due Date:</strong> {{ $DetailRefund['date'] }}</p>
                                <p><strong>Reason Complaint:</strong> {{ $DetailRefund['complaint'] }}</p>

                                <div class="d-flex justify-content-center">
                                    <a href="#" data-toggle="modal" data-target="#ModalRefund"
                                        class="btn btn-primary mx-1">Accept</a>
                                    <a href="/history_refund" class="btn btn-danger mx-1">Decline</a>
                                </div>

                            </div><br>
                        </div>
                    @endforeach


                </div>
            </div>
        </section>
    </div>
    @include('refund.next-detail-refund')
@endsection