<?php $__env->startSection('title'); ?>
    <?php echo e($title); ?>

<?php $__env->stopSection(); ?>


<?php $__env->startSection('content'); ?>
    <div class="page-header clearfix">
    </div>
    <!-- ./ notifications -->
    <?php echo $__env->make('user/'.$type.'/_form', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
    <?php if($user_data->inRole('admin')): ?>
        <fieldset class="history">
            <legend><?php echo e(trans('profile.history')); ?></legend>
            <ul>
            <?php $__currentLoopData = $lead->revisionHistory; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $history): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <li><?php echo e($history->userResponsible()->first_name); ?> changed <?php echo e(ucwords(str_replace("_"," ",$history->fieldName()))); ?>

                        from <?php echo e(($history->oldValue() != '') ? $history->oldValue() : 0); ?> to <?php echo e($history->newValue()); ?></li>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </ul>
        </fieldset>
    <?php endif; ?>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.user', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>