
<?php $__env->startSection('pageTitle', isset($pageTitle) ? $pageTitle : 'Page Title Here'); ?>
<?php $__env->startSection('content'); ?>
<div class="page-header">
    <div class="row">
        <div class="col-md-12 col-sm-12">
            <div class="title">
                <h4>Profile</h4>
            </div>
            <nav aria-label="breadcrumb" role="navigation">
                <ol class="breadcrumb">
                    <li class="breadcrumb-item">
                        <a href="<?php echo e(route('admin.dashboard')); ?>">Home</a>
                    </li>
                    <li class="breadcrumb-item active" aria-current="page">
                        Profile
                    </li>
                </ol>
            </nav>
        </div>
    </div>
</div>

<?php
$__split = function ($name, $params = []) {
    return [$name, $params];
};
[$__name, $__params] = $__split('admin.profile');

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

echo $__html;

unset($__html);
unset($__name);
unset($__params);
unset($__split);
if (isset($__slots)) unset($__slots);
?>
<?php $__env->stopSection(); ?>
<?php $__env->startPush('scripts'); ?>
<script>
    $('input[type="file"][id="profilePictureFile"]').kropify({
        preview: 'image#profilePicturePreview',
        viewMode: 1,
        aspectRatio: 1,
        cancelButtonText: 'Cancel',
        resetButtonText: 'Reset',
        cropButtonText: 'Crop & update',
        processURL: '<?php echo e(route("admin.update_profile_picture")); ?>',
        maxSize: 2097152, //2MB
        showLoader: true,
        success: function(data) {
            if (data.status == 1) {
                Livewire.dispatch('updateTopUserInfo',[]);
                Livewire.dispatch('updateProfile',[])
                toastr.success(data.message);

            } else {

                toastr.error(data.message);

            }
        },
        errors: function(error, text) {
            console.log(text);
        },
    });
    
</script>
<?php $__env->stopPush(); ?>
<?php echo $__env->make('back.layout.page-layout', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\xampp\htdocs\larablog\resources\views/back/pages/settings/profile.blade.php ENDPATH**/ ?>