34 lines
No EOL
1.3 KiB
PHP
34 lines
No EOL
1.3 KiB
PHP
<?php
|
|
$menu = App\Menu::all()->toArray();
|
|
?>
|
|
|
|
|
|
<?php $__env->startSection('main_content'); ?>
|
|
|
|
|
|
<h1>Change Profile Picture</h1>
|
|
<?php if($errors -> any() ): ?>
|
|
<div class="alert alert-danger">
|
|
<ul>
|
|
<?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
|
<li><?php echo e($error); ?></li>
|
|
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
|
</ul>
|
|
</div>
|
|
<?php endif; ?>
|
|
<form method="post" action="<?php echo e(url('user/changePic/' . $user['id'])); ?>" class="content-block" enctype="multipart/form-data">
|
|
<?php echo e(csrf_field()); ?>
|
|
|
|
|
|
<img width="150" src="<?php echo e(asset('images/profilePics/' . $user['profilepic'])); ?>" alt=""><br><br>
|
|
<label for="change-pic">change :</label>
|
|
<input type="file" name="image" value="Upload">
|
|
<div class="text-center">
|
|
<a href="<?php echo e(url('user/profile')); ?>" class="btn btn-default">Cancel</a>
|
|
<button type="submit" class="btn btn-primary"><i class="fa fa-save"></i>Change Pic</button>
|
|
</div>
|
|
</form>
|
|
|
|
<?php $__env->stopSection(); ?>
|
|
|
|
<?php echo $__env->make('master', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
|