Server : nginx/1.18.0 System : Linux localhost 6.14.3-x86_64-linode168 #1 SMP PREEMPT_DYNAMIC Mon Apr 21 19:47:55 EDT 2025 x86_64 User : www-data ( 33) PHP Version : 8.0.16 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /var/www/ecommerce/storage/framework/views/ |
<?php $__env->startSection('title', 'Admin Profile'); ?>
<?php $__env->startSection('main-content'); ?>
<div class="card shadow mb-4">
<div class="row">
<div class="col-md-12">
<?php echo $__env->make('backend.layouts.notification', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</div>
</div>
<div class="card-header py-3">
<h4 class=" font-weight-bold">Profile</h4>
<ul class="breadcrumbs">
<li><a href="<?php echo e(route('admin')); ?>" style="color:#999">Dashboard</a></li>
<li><a href="" class="active text-e-primary">Profile Page</a></li>
</ul>
</div>
<div class="card-body">
<div class="row">
<div class="col-md-4">
<div class="card">
<div class="image">
<?php if($profile->photo): ?>
<img class="card-img-top img-fluid roundend-circle mt-4"
style="border-radius:50%;height:80px;width:80px;margin:auto;"
src="<?php echo e($profile->photo); ?>" alt="profile picture">
<?php else: ?>
<img class="card-img-top img-fluid roundend-circle mt-4"
style="border-radius:50%;height:80px;width:80px;margin:auto;"
src="<?php echo e(asset('backend/img/avatar.png')); ?>" alt="profile picture">
<?php endif; ?>
</div>
<div class="card-body mt-4 ml-2">
<h5 class="card-title text-left"><small><i class="fas fa-user"></i>
<?php echo e($profile->name); ?></small></h5>
<p class="card-text text-left"><small><i class="fas fa-envelope"></i>
<?php echo e($profile->email); ?></small></p>
<p class="card-text text-left"><small class="text-muted"><i class="fas fa-hammer"></i>
<?php echo e($profile->role); ?></small></p>
</div>
</div>
</div>
<div class="col-md-8">
<form class="border px-4 pt-2 pb-3" method="POST" action="<?php echo e(route('profile-update', $profile->id)); ?>">
<?php echo csrf_field(); ?>
<div class="form-group">
<label for="first_name" class="col-form-label">First Name</label>
<input type="text" name="first_name" placeholder="Enter first name"
value="<?php echo e($profile->first_name); ?>" class="form-control">
<?php $__errorArgs = ['first_name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
<span class="text-danger"><?php echo e($message); ?></span>
<?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
</div>
<div class="form-group">
<label for="last_name" class="col-form-label">Last Name</label>
<input type="text" name="last_name" placeholder="Enter last name"
value="<?php echo e($profile->last_name); ?>" class="form-control">
<?php $__errorArgs = ['last_name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
<span class="text-danger"><?php echo e($message); ?></span>
<?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
</div>
<div class="form-group">
<label for="inputEmail" class="col-form-label">Email</label>
<input id="inputEmail" disabled type="email" name="email" placeholder="Enter email"
value="<?php echo e($profile->email); ?>" class="form-control">
<?php $__errorArgs = ['email'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
<span class="text-danger"><?php echo e($message); ?></span>
<?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
</div>
<div class="form-group">
<label for="inputPhoto" class="col-form-label">Photo</label>
<div class="input-group">
<span class="input-group-btn">
<a id="lfm" data-input="thumbnail" data-preview="holder" class="btn btn-primary">
<i class="fa fa-picture-o"></i> Choose
</a>
</span>
<input id="thumbnail" class="form-control" type="text" name="photo"
value="<?php echo e($profile->photo); ?>">
</div>
<?php $__errorArgs = ['photo'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
<span class="text-danger"><?php echo e($message); ?></span>
<?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
</div>
<input type="hidden" name="role" value="<?php echo $profile->role; ?>" />
<button type="submit" class="btn btn-success">Update</button>
</form>
</div>
</div>
</div>
</div>
<?php $__env->stopSection(); ?>
<style>
.breadcrumbs {
list-style: none;
}
.breadcrumbs li {
float: left;
margin-right: 10px;
}
.breadcrumbs li a:hover {
text-decoration: none;
}
.breadcrumbs li .active {
color: red;
}
.breadcrumbs li+li:before {
content: "/\00a0";
}
.image {
background: #4e73df;
height: 150px;
background-position: center;
background-attachment: cover;
position: relative;
}
.image img {
position: absolute;
top: 55%;
left: 35%;
margin-top: 30%;
}
i {
font-size: 14px;
padding-right: 8px;
}
</style>
<?php $__env->startPush('scripts'); ?>
<script src="<?php echo e(asset('/vendor/laravel-filemanager/js/stand-alone-button.js')); ?>"></script>
<script>
$('#lfm').filemanager('file', {
prefix: "<?php echo route('unisharp.lfm.show'); ?>"
});
</script>
<?php $__env->stopPush(); ?>
<?php echo $__env->make('backend.layouts.base', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/ecommerce/resources/views/backend/users/profile.blade.php ENDPATH**/ ?>