<div class="row">
    <div class="col">
        <div class="card mb-4">
            <div class="card-body">
                @php($profile_image = auth()->user()->profile_image)
                <div class="d-flex">
                    <div class="profile-img">
                        <img src="@if($profile_image == null) {{asset("img/avatar.png") }}  @else {{ asset("storage/$profile_image") }} @endif" id="image_preview_container" alt="profile_image">
                    </div>
                    <div class="ms-3">
                        <h5 class="mb-0">{{$name}}</h5>
                        <p class="text-muted mb-3">{{$about}}</p>
                        <div class="form-group mb-2">
                            <label>@lang("Электронная почта")</label>
                            <p class="text-muted m-0">{{$user->email}} @if(is_null($user->email_verified_at)) <a href="#" class="btn btn-outline-primary">@lang("Подтвердить")</a> @endif</p>
                        </div>
                        <div class="form-group mb-2">
                            <label>@lang("Телефон")</label>
                            <p class="text-muted m-0">{{$user->phone}} @if(is_null($user->phone_verified_at)) <a href="#" class="btn btn-outline-primary">@lang("Подтвердить")</a> @endif</p>
                        </div>
                        <a href="{{lurl('app/user.profile/edit')."?pk=".$user->id}}" class="btn btn-light">@lang("Редактировать")</a>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

