@extends('frontend.layouts.app')
@push('style')
    <style>
        .confirmwrap {
            min-height: 53.8vh;
        }
    </style>
@endpush
@section('content')
    <div class="confirmwrap">
        <section>
            <div class="container mt-5">
                <div class="row">
                    <div class="col-12 col-sm-12 col-md-5 col-lg-4 mt-4">
                        <div class="">
                            <h3 class="welcome-user">Welcome {{ user()->name }}</h3>
                        </div>

                        <div class="">
                            <div class="my-account">
                                <h6 class="fw-semibold">My Account</h6>
                                @include('frontend.components.user-account-sidebar')
                            </div>
                        </div>

                        <div class="my-account2">
                            <div class="border-bottom">
                                <p class="d-inline-flex gap-1 my-account m-0">
                                    <a class="text-decoration-none text-dark fw-semibold" data-bs-toggle="collapse"
                                        href="#collapseExample" role="button" aria-expanded="false"
                                        aria-controls="collapseExample">
                                        My Account
                                    </a>
                                </p>
                            </div>

                            <div class="collapse" id="collapseExample">
                                <div class="">
                                    @include('frontend.components.user-account-sidebar')
                                </div>
                            </div>
                        </div>

                    </div>
                    <div class="col-12 col-sm-12 col-md-12 col-lg-7 web-userinfo">
                        @if (session('success'))
                            <div class="alert alert-success alert-dismissible fade show" role="alert">
                                {{ session('success') }}
                                <button type="button" class="btn-close" data-bs-dismiss="alert"
                                    aria-label="Close"></button>
                            </div>
                        @endif
                        <div class="">
                            <p class="m-0">Name</p>
                            <p class="web-user">{{ $userData->name }}</p>
                        </div>
                        <div class="">
                            <p class="m-0">Email</p>
                            <p class="web-user">{{ $userData->email }}</p>
                        </div>
                        <div class="">
                            <p class="m-0">Phone</p>
                            <p class="web-user">{{ $userData->phone ?? 'null' }}</p>
                        </div>
                        <a href="{{ route('edit-web-user') }}"><button type="submit"
                                class="btn btn-dark rounded-0 mt-3">Edit</button>
                        </a>
                    </div>
                </div>

            </div>
        </section>
    </div>
@endsection
