<?php $__env->startSection('content'); ?>
<div id="content-page" class="content-page">
    <div class="container-fluid">
        <div class="row">
            <div class="col-sm-12">
            </div>
            <div class="col-sm-12">
                <div class="row">
                    <div class="col-lg-3 profile-left">
                        <div class="iq-card">
                            <div class="iq-card-header d-flex justify-content-between">
                                <div class="iq-header-title">
                                <h4 class="card-title"><?php echo e(trans('messages.appointment')); ?></h4>
                                </div>
                            </div>
                            <div class="iq-card-body">
                                <ul class="m-0 p-0">
                                    <!-- <li class="d-flex mb-2">
                                        <div class="news-icon"><i class="ri-calendar-2-line"></i></div>
                                        <p class="news-detail mb-0">there is a meetup in your city on fryday at 19:00. <a href="#">see details</a></p>
                                    </li>
                                    <li class="d-flex">
                                        <div class="news-icon mb-0"><i class="ri-calendar-2-line"></i></div>
                                        <p class="news-detail mb-0">20% off coupon on selected items at pharmaprix </p>
                                    </li> -->

                                    <?php if( isset($userdata->appointment) && count($userdata->appointment) > 0): ?>
                                        <?php $__currentLoopData = $userdata->appointment; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $appointment): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <li class="d-flex">
                                                <div class="news-icon mb-0" ><i class="ri-calendar-2-line" ></i></div>
                                                <p class="news-detail mb-0 mt-1"> <?php echo e(optional($appointment->service)->name); ?> (<?php echo e(date('d-M-Y',strtotime($appointment->date))); ?> ) </p>
                                            </li>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    <?php else: ?>
                                    <li class="d-flex">
                                        <h6 class="news-detail mb-0"><?php echo e(trans('messages.no_record',['form' => trans('messages.appointment')])); ?> </h6>
                                    </li>
                                    <?php endif; ?>
                                </ul>
                            </div>
                        </div>
                    </div>
                    <div class="col-lg-9 profile-center">
                        <!-- <div class="iq-card">
                            <div class="iq-card-header d-flex justify-content-between">
                                <div class="iq-header-title">
                                    <h4 class="card-title"><?php echo e(trans('messages.profile')); ?></h4>
                                </div>
                            </div>
                            <div class="iq-card-body">
                                <div class="user-detail text-center">
                                    <div class="user-profile">
                                        <img src="<?php echo e(getSingleMedia($userdata,'profile_image', null)); ?>" alt="profile-img" class="avatar-130 img-fluid">
                                    </div>
                                    <div class="profile-detail mt-3">
                                        <h3 class="d-inline-block"><?php echo e($userdata->name); ?></h3>
                                        <p class="d-inline-block pl-3"> - <?php echo e($userdata->user_type); ?></p>
                                        
                                    </div>
                                </div>
                            </div>
                        </div> -->
                        <div class="iq-card">
                            <div class="iq-card-header d-flex justify-content-between">
                                <div class="iq-header-title">
                                    <h4 class="card-title"><?php echo e(trans('messages.about_user')); ?></h4>
                                </div>
                                <div class="iq-card-header-toolbar d-flex align-items-center">
                                    <a href="<?php echo e(route('users.index')); ?>" class="float-right mr-1 btn btn-sm btn-primary"><i class="ri-arrow-drop-left-line"></i><?php echo e(trans('messages.back')); ?></a> 
                                </div>
                            </div>
                            <div class="iq-card-body">
                                <div class="row">
                                    <div class="col-md-3">
                                        <div class="user-detail">
                                            <div class="user-profile">
                                                <img src="<?php echo e(getSingleMedia($userdata,'profile_image', null)); ?>" alt="profile-img" class="avatar-130 img-fluid">
                                            </div>
                                            <div class="profile-detail mt-3">
                                                <h3 class="d-inline-block"><?php echo e($userdata->name); ?></h3>
                                                <p class="d-inline-block pl-1">- <?php echo e($userdata->user_type); ?></p>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-6">
                                        <div class="mt-2">
                                            <h6><?php echo e(trans('messages.email')); ?> :</h6>
                                            <p><?php echo e($userdata->email); ?></p>
                                        </div>
                                        
                                        <div class="mt-2">
                                            <h6><?php echo e(trans('messages.contact_number')); ?> :</h6>
                                            <p><?php echo e($userdata->contact_number); ?></p>
                                        </div>

                                        <div class="mt-2">
                                            <h6><?php echo e(trans('messages.gender')); ?> :</h6>
                                            <p class="text-capitalize"> <?php echo e($userdata->gender); ?></p>
                                        </div>

                                        <div class="mt-2">
                                            <h6><?php echo e(trans('messages.address')); ?> :</h6>
                                            <p> <?php echo e($userdata->address); ?></p>
                                        </div>
                                    </div>
                                    
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/html/Dashboard/laravel-dashboard/resources/views/user/view.blade.php ENDPATH**/ ?>