@extends('frontend.app')
@section('title', 'Affiliate')
@section('content')
    <!--============ Profile Area Start ============-->
    <section class="profile_area section_padding">
        <div class="container">
            <div class="row gy-4">
                <div class="col-xxl-3 col-xl-4 col-lg-4 col-md-12 col-sm-12 col-12">
                    @include('frontend.components.user_dashboard')
                </div>
                <div class="col-xxl-9 col-xl-8 col-lg-8 col-md-12 col-sm-12 col-12">
                    <div class="profile_right_side">
                        <div class="profile_heading text-center">
                            <h3>
                                Affiliate
                                Withdrawn List
                            </h3>
                        </div>
                        <div class="profile_page_content section_top_space">
                            <div class="profile_page_order_view table-responsive">
                                <table class="table table-bordered">
                                    <thead>
                                        <tr>
                                            <th>SL</th>
                                            <th> Amount </th>
                                            <th> Payment Method </th>
                                            <th> Note </th>
                                            <th> Date </th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        @foreach ($withdrawal as $key => $item)
                                            <tr>
                                                <td>{{ $key + 1 }}</td>
                                                <td>{{ $item->amount }} TK.</td>
                                                <td>{{ $item->payment_method }}</td>
                                                <td>{{ $item->note }}</td>
                                                <td>{{ $item->created_at }}</td>
                                            </tr>
                                        @endforeach
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>
    <!--============ Profile Area End ============-->

@endsection
