<div class="card">
    <div class="card-body">
        <div class="row">
            <div class="col-xxl-5 col-12">
                <div class="d-sm-flex align-items-center mb-5 mb-xxl-0 text-center text-sm-start">
                    <div class="image image-circle image-lg-small">
                        <img src="{{$user->profile_image}}" alt="user">
                    </div>
                    <div class="ms-0 ms-md-10 mt-5 mt-sm-0">
                        <h2>{!! $user->full_name !!}</h2>
                        <a href="mailto:{{$user->email}}"
                           class="text-gray-600 text-decoration-none fs-4">
                            {{$user->email}}
                        </a>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="mt-7 overflow-hidden">
    <ul class="nav nav-tabs mb-5 pb-1 overflow-auto flex-nowrap text-nowrap" id="myTab" role="tablist">
        <li class="nav-item position-relative me-7 mb-3" role="presentation">
            <button class="nav-link active p-0" id="overview-tab" data-bs-toggle="tab" data-bs-target="#overview"
                    type="button" role="tab" aria-controls="overview" aria-selected="true">
           {{__('messages.user.overview')}}
            </button>
        </li>
        <li class="nav-item position-relative me-7 mb-3" role="presentation">
            <button class="nav-link p-0" id="vcards-tab" data-bs-toggle="tab" data-bs-target="#vcards"
                    type="button" role="tab" aria-controls="cases" aria-selected="false">
                {{__('messages.vcards')}}
            </button>
        </li>
        
    </ul>
    <div class="card card-check">
        <div class="card-body card-body-check">
            <div class="tab-content" id="myTabContent">
                <div class="tab-pane fade show active" id="overview" role="tabpanel" aria-labelledby="overview-tab">
                    <div class="row">
                        <div class="col-sm-6 d-flex flex-column mb-md-10 mb-5">
                            <label for="name" class="pb-2 fs-4 text-gray-600">{{__('messages.user.email')}}:</label>
                            <span class="fs-4 text-gray-800">{{$user->email}}</span>
                        </div>
                        <div class="col-sm-6 d-flex flex-column mb-md-10 mb-5">
                            <label for="name" class="pb-2 fs-4 text-gray-600">{{__('messages.user.contact_number')}}:</label>
                            <span class="fs-4 text-gray-800">{{$user->contact ?? 'N/A'}}</span>
                        </div>
                        <div class="col-sm-6 d-flex flex-column mb-md-10 mb-5">
                            <label for="name" class="pb-2 fs-4 text-gray-600">{{__('messages.user.registered_date')}}:</label>
                            <span class="fs-4 text-gray-800">{{\Carbon\Carbon::parse($user->created_at)->format('jS \of F Y')}}</span>
                        </div>
                        <div class="col-sm-6 d-flex flex-column mb-sm-0 mb-5">
                            <label for="name" class="pb-2 fs-4 text-gray-600">{{__('messages.vcard.created_on')}}:</label>
                            <span class="fs-4 text-gray-800">{{$user->created_at->diffForHumans()}}</span>
                        </div>
                        <div class="col-sm-6 d-flex flex-column">
                            <label for="name" class="pb-2 fs-4 text-gray-600">{{__('messages.vcard.last_updated')}}:</label>
                            <span class="fs-4 text-gray-800">{{$user->updated_at->diffForHumans()}}</span>
                        </div>
                        
                    </div>
                </div>
                <div class="tab-pane fade" id="vcards" role="tabpanel" aria-labelledby="cases-tab">
                    <div class="fw-bold  table-striped">
                        <livewire:user-show-v-card-table  :user-id="$user->id"/>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
