
<?php $__env->startSection('pageTitle',isset($pageTitle) ? $pageTitle : 'Profile user'); ?>

<?php $__env->startSection('content'); ?>

<div class="row mb-3 ">
    <div class="col-md-6 col-sm-12">
        <div class="title">
            <h2 class="h3 mb-0">Profil</h2>
        </div>
    </div>
</div>


<div class="row">
    <div class="col-xl-4 col-lg-4 col-md-4 col-sm-12 mb-30">
        <div class="pd-20 card-box height-100-p">
            <div class="profile-photo">
                <a href="javascript:;"  onclick="event.preventDefault();document.getElementById
                ('ProfilePictureFile').click();"  
                class="edit-avatar"><i class="fa fa-pencil"></i></a>
                <img src="<?php echo e($user->picture); ?>" alt="" class="avatar-photo" id="ProfilePicture">
                <input type="file" name="ProfilePictureFile" id="ProfilePictureFile" class="d-none"
                style="opacity: 0">

            </div>
            <h5 class="text-center h5 mb-0" id="ProfileName"><?php echo e(Str::ucfirst($user->prenom)); ?>  <?php echo e(Str::ucfirst($user->nom)); ?></h5>
            <p class="text-center text-muted font-14" id="ProfileEmail">
                <?php echo e($user->email); ?>

            </p>
         
        </div>
    </div>
    <div class="col-xl-8 col-lg-8 col-md-8 col-sm-12 mb-30">
        <div class="card-box height-100-p overflow-hidden">
            <?php
$__split = function ($name, $params = []) {
    return [$name, $params];
};
[$__name, $__params] = $__split('profile-tabs');

$__html = app('livewire')->mount($__name, $__params, 'k7LbIFR', $__slots ?? [], get_defined_vars());

echo $__html;

unset($__html);
unset($__name);
unset($__params);
unset($__split);
if (isset($__slots)) unset($__slots);
?>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php $__env->startPush('scripts'); ?>
<script>
          $('input[type="file"][name="ProfilePictureFile"][id="ProfilePictureFile"]').ijaboCropTool({
          preview : '#ProfilePicture',
          setRatio:1,
          allowedExtensions: ['jpg', 'jpeg','png'],
          buttonsText:['Save','Cancel'],
          buttonsColor:['#30bf7d','#ee5155', -15],
          processUrl:'',
          withCSRF:['_token','<?php echo e(csrf_token()); ?>'],
          onSuccess:function(message, element, status){
             alert(message);
          },
          onError:function(message, element, status){
            alert(message +' '+JSON.stringify(element)) ;
          }
       });
</script>
    
<?php $__env->stopPush(); ?>


<?php echo $__env->make('layout.page-layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\laragon\www\access\resources\views/pages/profileView.blade.php ENDPATH**/ ?>