Eshop-Laravel/storage/framework/views/ff97cf18ede5e008090ac84e655e8c1c98c0266b.php
2019-10-18 12:25:37 +03:00

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(); ?>