@extends('layouts.account', ['title' => 'Account - Wishlist'])

@section('content')
    <!-- Wishlist content -->
    <div class="col-lg-9">
        <div class="ps-lg-3 ps-xl-0">
            <!-- Page title + Add list button-->
            <div class="d-flex align-items-center justify-content-between pb-3 mb-1 mb-sm-2 mb-md-3">
                <h1 class="h2 me-3 mb-0">Wishlist</h1>
                <div class="nav">
                    <a class="nav-link animate-underline px-0 py-1 py-ms-2" data-bs-toggle="modal" href="#wishlistModal">
                        <i class="ci-plus fs-base me-1"></i>
                        <span class="animate-target">Add wishlist</span>
                    </a>
                </div>
            </div>
            <!-- Wishlist selector -->
            <div class="border-bottom pb-4 mb-3">
                <div class="row align-items-center justify-content-between">
                    <div class="col-sm-7 col-md-8 col-xxl-9 d-flex align-items-center mb-3 mb-sm-0">
                        <h5 class="me-2 mb-0">Interesting offers</h5>
                        <div class="dropdown ms-auto ms-sm-0">
                            <button aria-expanded="false" aria-haspopup="true" aria-label="Select wishlist"
                                class="btn btn-icon btn-ghost btn-secondary border-0" data-bs-auto-close="outside"
                                data-bs-toggle="dropdown" id="wishlist-selector" type="button">
                                <i class="ci-more-vertical fs-xl"></i>
                            </button>
                            <div class="dropdown-menu dropdown-menu-end">
                                <div class="d-flex flex-column gap-1 mb-2">
                                    <div class="form-check">
                                        <input checked="" class="form-check-input" id="wishlist-1" name="wishlist"
                                            type="radio" />
                                        <label class="form-check-label text-body" for="wishlist-1">Interesting
                                            offers</label>
                                    </div>
                                    <div class="form-check">
                                        <input class="form-check-input" id="wishlist-2" name="wishlist" type="radio" />
                                        <label class="form-check-label text-body" for="wishlist-2">Top picks
                                            collection</label>
                                    </div>
                                    <div class="form-check">
                                        <input class="form-check-input" id="wishlist-3" name="wishlist" type="radio" />
                                        <label class="form-check-label text-body" for="wishlist-3">Family
                                            stuff</label>
                                    </div>
                                    <div class="form-check">
                                        <input class="form-check-input" id="wishlist-4" name="wishlist" type="radio" />
                                        <label class="form-check-label text-body" for="wishlist-4">My
                                            must-haves</label>
                                    </div>
                                    <div class="form-check">
                                        <input class="form-check-input" id="wishlist-5" name="wishlist" type="radio" />
                                        <label class="form-check-label text-body" for="wishlist-5">For my
                                            husband</label>
                                    </div>
                                </div>
                                <button class="btn btn-sm btn-dark w-100"
                                    onclick="document.getElementById('wishlist-selector').click()" type="button">Select
                                    wishlist</button>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-5 col-md-4 col-xxl-3">
                        <select aria-label="Wishlist sorting" class="form-select" data-select='{"removeItemButton": false}'>
                            <option value="date">By date added</option>
                            <option value="price-ascend">By price ascending</option>
                            <option value="price-descend">By price descending</option>
                            <option value="rating">By rating</option>
                        </select>
                    </div>
                </div>
            </div>
            <!-- Master checkbox + Action buttons -->
            <div class="nav align-items-center mb-4">
                <div class="form-checkl nav-link animate-underline fs-lg ps-0 pe-2 py-2 mt-n1 me-4"
                    data-master-checkbox='{"container": "#wishlistSelection", "label": "Select all", "labelChecked": "Unselect all", "showOnCheck": "#action-buttons"}'>
                    <input checked="" class="form-check-input" id="wishlist-master" type="checkbox" />
                    <label class="form-check-label animate-target mt-1 ms-2" for="wishlist-master">Unselect
                        all</label>
                </div>
                <div class="d-flex flex-wrap" id="action-buttons">
                    <a class="nav-link animate-underline px-0 pe-sm-2 py-2 me-4" href="#!">
                        <i class="ci-shopping-cart fs-base me-2"></i>
                        <span class="animate-target d-none d-md-inline">Add to cart</span>
                    </a>
                    <a class="nav-link animate-underline px-0 pe-sm-2 py-2 me-4" href="#!">
                        <i class="ci-repeat fs-base me-2"></i>
                        <span class="animate-target d-none d-md-inline">Relocate</span>
                    </a>
                    <a class="nav-link animate-underline px-0 py-2" href="#!">
                        <i class="ci-trash fs-base me-1"></i>
                        <span class="animate-target d-none d-md-inline">Remove selected</span>
                    </a>
                </div>
            </div>
            <!-- Wishlist items (Grid) -->
            <div class="row row-cols-2 row-cols-md-3 g-4" id="wishlistSelection">
                <!-- Item -->
                <div class="col">
                    <div class="product-card animate-underline hover-effect-opacity bg-body rounded">
                        <div class="position-relative">
                            <div class="position-absolute top-0 end-0 z-1 pt-1 pe-1 mt-2 me-2">
                                <div class="form-check fs-lg">
                                    <input checked="" class="form-check-input select-card-check" type="checkbox" />
                                </div>
                            </div>
                            <a class="d-block rounded-top overflow-hidden p-3 p-sm-4"
                                href="{{ route('second', ['shop', 'product-general-electronics']) }}">
                                <span
                                    class="badge bg-danger position-absolute top-0 start-0 mt-2 ms-2 mt-lg-3 ms-lg-3">-21%</span>
                                <div class="ratio" style="--cz-aspect-ratio: calc(240 / 258 * 100%)">
                                    <img alt="VR Glasses" src="/img/shop/electronics/01.png" />
                                </div>
                            </a>
                        </div>
                        <div class="w-100 min-w-0 px-1 pb-2 px-sm-3 pb-sm-3">
                            <div class="d-flex align-items-center gap-2 mb-2">
                                <div class="d-flex gap-1 fs-xs">
                                    <i class="ci-star-filled text-warning"></i>
                                    <i class="ci-star-filled text-warning"></i>
                                    <i class="ci-star-filled text-warning"></i>
                                    <i class="ci-star-filled text-warning"></i>
                                    <i class="ci-star text-body-tertiary opacity-75"></i>
                                </div>
                                <span class="text-body-tertiary fs-xs">(123)</span>
                            </div>
                            <h3 class="pb-1 mb-2">
                                <a class="d-block fs-sm fw-medium text-truncate"
                                    href="{{ route('second', ['shop', 'product-general-electronics']) }}">
                                    <span class="animate-target">VRB01 Virtual Reality Glasses</span>
                                </a>
                            </h3>
                            <div class="d-flex align-items-center justify-content-between">
                                <div class="h5 lh-1 mb-0">$340.99 <del
                                        class="text-body-tertiary fs-sm fw-normal">$430.00</del></div>
                                <button aria-label="Add to Cart"
                                    class="product-card-button btn btn-icon btn-secondary animate-slide-end ms-2"
                                    type="button">
                                    <i class="ci-shopping-cart fs-base animate-target"></i>
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
                <!-- Item -->
                <div class="col">
                    <div class="product-card animate-underline hover-effect-opacity bg-body rounded">
                        <div class="position-relative">
                            <div class="position-absolute top-0 end-0 z-1 pt-1 pe-1 mt-2 me-2">
                                <div class="form-check fs-lg">
                                    <input checked="" class="form-check-input select-card-check" type="checkbox" />
                                </div>
                            </div>
                            <a class="d-block rounded-top overflow-hidden p-3 p-sm-4"
                                href="{{ route('second', ['shop', 'product-general-electronics']) }}">
                                <div class="ratio" style="--cz-aspect-ratio: calc(240 / 258 * 100%)">
                                    <img alt="iPhone 14" src="/img/shop/electronics/02.png" />
                                </div>
                            </a>
                        </div>
                        <div class="w-100 min-w-0 px-1 pb-2 px-sm-3 pb-sm-3">
                            <div class="d-flex align-items-center gap-2 mb-2">
                                <div class="d-flex gap-1 fs-xs">
                                    <i class="ci-star-filled text-warning"></i>
                                    <i class="ci-star-filled text-warning"></i>
                                    <i class="ci-star-filled text-warning"></i>
                                    <i class="ci-star-filled text-warning"></i>
                                    <i class="ci-star-half text-warning"></i>
                                </div>
                                <span class="text-body-tertiary fs-xs">(142)</span>
                            </div>
                            <h3 class="pb-1 mb-2">
                                <a class="d-block fs-sm fw-medium text-truncate"
                                    href="{{ route('second', ['shop', 'product-general-electronics']) }}">
                                    <span class="animate-target">Apple iPhone 14 128GB White</span>
                                </a>
                            </h3>
                            <div class="d-flex align-items-center justify-content-between">
                                <div class="h5 lh-1 mb-0">$899.00</div>
                                <button aria-label="Add to Cart"
                                    class="product-card-button btn btn-icon btn-secondary animate-slide-end ms-2"
                                    type="button">
                                    <i class="ci-shopping-cart fs-base animate-target"></i>
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
                <!-- Item -->
                <div class="col">
                    <div class="product-card animate-underline hover-effect-opacity bg-body rounded">
                        <div class="position-relative">
                            <div class="position-absolute top-0 end-0 z-1 pt-1 pe-1 mt-2 me-2">
                                <div class="form-check fs-lg">
                                    <input class="form-check-input select-card-check" type="checkbox" />
                                </div>
                            </div>
                            <a class="d-block rounded-top overflow-hidden p-3 p-sm-4"
                                href="{{ route('second', ['shop', 'product-general-electronics']) }}">
                                <div class="ratio" style="--cz-aspect-ratio: calc(240 / 258 * 100%)">
                                    <img alt="Smart Watch" src="/img/shop/electronics/03.png" />
                                </div>
                            </a>
                        </div>
                        <div class="w-100 min-w-0 px-1 pb-2 px-sm-3 pb-sm-3">
                            <div class="d-flex align-items-center gap-2 mb-2">
                                <div class="d-flex gap-1 fs-xs">
                                    <i class="ci-star-filled text-warning"></i>
                                    <i class="ci-star-filled text-warning"></i>
                                    <i class="ci-star-filled text-warning"></i>
                                    <i class="ci-star-filled text-warning"></i>
                                    <i class="ci-star-filled text-warning"></i>
                                </div>
                                <span class="text-body-tertiary fs-xs">(67)</span>
                            </div>
                            <h3 class="pb-1 mb-2">
                                <a class="d-block fs-sm fw-medium text-truncate"
                                    href="{{ route('second', ['shop', 'product-general-electronics']) }}">
                                    <span class="animate-target">Smart Watch Series 7, White</span>
                                </a>
                            </h3>
                            <div class="d-flex align-items-center justify-content-between">
                                <div class="h5 lh-1 mb-0">$429.00</div>
                                <button aria-label="Add to Cart"
                                    class="product-card-button btn btn-icon btn-secondary animate-slide-end ms-2"
                                    type="button">
                                    <i class="ci-shopping-cart fs-base animate-target"></i>
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
                <!-- Item -->
                <div class="col">
                    <div class="product-card animate-underline hover-effect-opacity bg-body rounded">
                        <div class="posittion-relative">
                            <div class="position-absolute top-0 end-0 z-1 pt-1 pe-1 mt-2 me-2">
                                <div class="form-check fs-lg">
                                    <input class="form-check-input select-card-check" type="checkbox" />
                                </div>
                            </div>
                            <a class="d-block rounded-top overflow-hidden p-3 p-sm-4"
                                href="{{ route('second', ['shop', 'product-general-electronics']) }}">
                                <div class="ratio" style="--cz-aspect-ratio: calc(240 / 258 * 100%)">
                                    <img alt="iPad Air" src="/img/shop/electronics/05.png" />
                                </div>
                            </a>
                        </div>
                        <div class="w-100 min-w-0 px-1 pb-2 px-sm-3 pb-sm-3">
                            <div class="d-flex align-items-center gap-2 mb-2">
                                <div class="d-flex gap-1 fs-xs">
                                    <i class="ci-star-filled text-warning"></i>
                                    <i class="ci-star-filled text-warning"></i>
                                    <i class="ci-star-filled text-warning"></i>
                                    <i class="ci-star-filled text-warning"></i>
                                    <i class="ci-star-filled text-warning"></i>
                                </div>
                                <span class="text-body-tertiary fs-xs">(12)</span>
                            </div>
                            <h3 class="pb-1 mb-2">
                                <a class="d-block fs-sm fw-medium text-truncate"
                                    href="{{ route('second', ['shop', 'product-general-electronics']) }}">
                                    <span class="animate-target">Tablet Apple iPad Air M1</span>
                                </a>
                            </h3>
                            <div class="d-flex align-items-center justify-content-between">
                                <div class="h5 lh-1 mb-0">$540.00</div>
                                <button aria-label="Add to Cart"
                                    class="product-card-button btn btn-icon btn-secondary animate-slide-end ms-2"
                                    type="button">
                                    <i class="ci-shopping-cart fs-base animate-target"></i>
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
                <!-- Item -->
                <div class="col">
                    <div class="product-card animate-underline hover-effect-opacity bg-body rounded">
                        <div class="position-relative">
                            <div class="position-absolute top-0 end-0 z-1 pt-1 pe-1 mt-2 me-2">
                                <div class="form-check fs-lg">
                                    <input class="form-check-input select-card-check" type="checkbox" />
                                </div>
                            </div>
                            <a class="d-block rounded-top overflow-hidden p-3 p-sm-4"
                                href="{{ route('second', ['shop', 'product-general-electronics']) }}">
                                <div class="ratio" style="--cz-aspect-ratio: calc(240 / 258 * 100%)">
                                    <img alt="AirPods 2" src="/img/shop/electronics/06.png" />
                                </div>
                            </a>
                        </div>
                        <div class="w-100 min-w-0 px-1 pb-2 px-sm-3 pb-sm-3">
                            <div class="d-flex align-items-center gap-2 mb-2">
                                <div class="d-flex gap-1 fs-xs">
                                    <i class="ci-star-filled text-warning"></i>
                                    <i class="ci-star-filled text-warning"></i>
                                    <i class="ci-star-filled text-warning"></i>
                                    <i class="ci-star-filled text-warning"></i>
                                    <i class="ci-star text-body-tertiary opacity-75"></i>
                                </div>
                                <span class="text-body-tertiary fs-xs">(78)</span>
                            </div>
                            <h3 class="pb-1 mb-2">
                                <a class="d-block fs-sm fw-medium text-truncate"
                                    href="{{ route('second', ['shop', 'product-general-electronics']) }}">
                                    <span class="animate-target">Headphones Apple AirPods 2 Pro</span>
                                </a>
                            </h3>
                            <div class="d-flex align-items-center justify-content-between">
                                <div class="h5 lh-1 mb-0">$224.00</div>
                                <button aria-label="Add to Cart"
                                    class="product-card-button btn btn-icon btn-secondary animate-slide-end ms-2"
                                    type="button">
                                    <i class="ci-shopping-cart fs-base animate-target"></i>
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection

@section('scripts')
@endsection
