@extends('layouts.web')

@section('content')
    <section class="py-5 my-5" style="background-color: #f5f5f5; min-height: 80vh">
        <div class="container-fluid">
            <div class="row">
                <div class="col-md-8 offset-md-2">
                    <div class="card">
                        <div class="card-body">
                            <div class="order-md-last">
                                <h4 class="d-flex justify-content-between align-items-center mb-3">
                                    <span class="text-primary">Pengaturan</span>
                                </h4>
                                <ul class="list-group mb-3">
                                    <li class="list-group-item d-flex justify-content-between lh-sm">
                                        <div class="d-flex justify-content-between">
                                            {{-- <img src="{{ asset('img_assets/product/'.$item->product->image) }}" alt="" style="width: 100px; object-fit: contain"> --}}
                                            <div class="d-flex justify-content-center"
                                                style="flex-direction: column; padding-left: 20px">
                                                <h6 class="my-0">{{ auth()->user()->name }}</h6>
                                                <small class="text-body-secondary">{{ auth()->user()->email }}</small>
                                            </div>
                                        </div>
                                        <div class="d-flex justify-content-between align-items-center">
                                            <i class="fa-solid fa-chevron-right"></i>
                                        </div>
                                    </li>
                                    <li class="list-group-item d-flex justify-content-between lh-sm">
                                        <div class="d-flex justify-content-between">
                                            {{-- <img src="{{ asset('img_assets/product/'.$item->product->image) }}" alt="" style="width: 100px; object-fit: contain"> --}}
                                            <div class="d-flex justify-content-center"
                                                style="flex-direction: column; padding-left: 20px">
                                                <a href="{{ route('order') }}">
                                                    <h6 class="my-0">List Pemesanan</h6>
                                                </a>
                                                <small class="text-body-secondary">Check status pemesanan kamu
                                                    disini</small>
                                            </div>
                                        </div>
                                        <div class="d-flex justify-content-between align-items-center">
                                            <i class="fa-solid fa-chevron-right"></i>
                                        </div>
                                    </li>
                                    <li class="list-group-item d-flex justify-content-between lh-sm">
                                        <div class="d-flex justify-content-between">
                                            {{-- <img src="{{ asset('img_assets/product/'.$item->product->image) }}" alt="" style="width: 100px; object-fit: contain"> --}}
                                            <div class="d-flex justify-content-center"
                                                style="flex-direction: column; padding-left: 20px">
                                                <a href="{{ route('shipping_address') }}">
                                                    <h6 class="my-0">Alamat Pengiriman</h6>
                                                </a>
                                            </div>
                                        </div>
                                        <div class="d-flex justify-content-between align-items-center">
                                            <i class="fa-solid fa-chevron-right"></i>
                                        </div>
                                    </li>
                                    <li class="list-group-item d-flex justify-content-between lh-sm">
                                        <div class="d-flex justify-content-between">
                                            {{-- <img src="{{ asset('img_assets/product/'.$item->product->image) }}" alt="" style="width: 100px; object-fit: contain"> --}}
                                            <div class="d-flex justify-content-center"
                                                style="flex-direction: column; padding-left: 20px">
                                                <h6 class="my-0"><a href="{{ route('logout') }}"
                                                        onclick="event.preventDefault();document.getElementById('logout-form').submit()">Logout</a>
                                                </h6>
                                            </div>
                                        </div>
                                        <div class="d-flex justify-content-between align-items-center">
                                            <i class="fa-solid fa-chevron-right"></i>
                                        </div>
                                    </li>
                                </ul>
                                <form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none">
                                    @csrf
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>
@endsection
