Eshop-Laravel/storage/framework/views/d70affe12f619f2a3dd1acb88d34ebd19ee94a6f.php

158 lines
6.8 KiB
PHP
Raw Normal View History

2019-10-18 09:25:37 +00:00
<?php
$menu = App\Menu::all()->toArray();
?>
<?php $__env->startSection('main_content'); ?>
<section class="hero hero-page gray-bg padding-small">
<div class="container">
<div class="row d-flex">
<div class="col-lg-9 order-2 order-lg-1">
<h1>Your profile</h1>
</div>
<div class="col-lg-3 text-right order-1 order-lg-2">
<ul class="breadcrumb justify-content-lg-end">
<li class="breadcrumb-item"><a href="<?php echo e(url('')); ?>">Home</a></li>
<li class="breadcrumb-item active">Your profile</li>
</ul>
</div>
</div>
</div>
</section>
<?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; ?>
<section class="padding-small">
<div class="container">
<div class="row">
<!-- Customer Sidebar-->
<div class="customer-sidebar col-xl-3 col-lg-4 mb-md-5">
<div class="customer-profile"><a href="<?php echo e(url('user/changePic' .'/'. $user[0]->id)); ?>" class="d-inline-block">
<img src="<?php echo e(asset('images/profilePics').'/'.$user[0]->{'profilepic'}); ?>" class="img-fluid rounded-circle customer-image"></a>
<h5><?php echo e(Session::get('user_name')); ?></h5>
<p class="text-muted text-small"><?php echo e($user[0]->{'street'} . ','. $user[0]->{'streetNum'}); ?>
<br>
<?php echo e($user[0]->{'city'}); ?>
<br>
<?php echo e($user[0]->{'country'}); ?> <br>ZIP : <?php echo e($user[0]->{'ZIP'}); ?> </p>
</div>
<nav class="list-group customer-nav">
<a href="<?php echo e(url('user/customer-orders')); ?>" class="list-group-item d-flex justify-content-between align-items-center">
<span>
<span class="icon icon-bag">
</span>Orders</span>
<small class="badge badge-pill badge-primary"><?php echo e($user_orders); ?>
</small></a>
<a href="customer-account.html" class="active list-group-item d-flex justify-content-between align-items-center">
<span>
<span class="icon icon-profile">
</span>Profile</span>
</a>
<a href="<?php echo e(url('user/logout')); ?>" class="list-group-item d-flex justify-content-between align-items-center"><span>
<span class="fa fa-sign-out"></span>Log out</span></a>
</nav>
</div>
<div class="col-lg-8 col-xl-9 pl-lg-3">
<div class="block-header mb-5">
<a href="<?php echo e(url('user/changePass')); ?>">
<h5>Change password </h5>
</div></a>
<div class="block-header mb-5">
<h5>Personal details</h5>
</div>
<form method="post" action="" class="content-block">
<?php echo e(csrf_field()); ?>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label for="firstname" class="form-label">Firstname</label>
<input name="name" value="<?php echo e($user[0]->{'name'}); ?>" id="firstname" type="text" class="form-control">
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label for="lastname" class="form-label">Lastname</label>
<input name="last_name" value="<?php echo e($user[0]->{'last_name'}); ?>" id="lastname" type="text" class="form-control">
</div>
</div>
</div>
<!-- /.row-->
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label for="Street_Number" class="form-label">Street Number</label>
<input name="streetNum" value="<?php echo e($user[0]->{'streetNum'}); ?>" id="Street_Number" type="text" class="form-control">
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label for="street" class="form-label">Street</label>
<input name="street" value="<?php echo e($user[0]->{'street'}); ?>" id="street" type="text" class="form-control">
</div>
</div>
</div>
<!-- /.row-->
<div class="row">
<div class="col-sm-6 col-md-3">
<div class="form-group">
<label for="city" class="form-label">City</label>
<input name="city" value="<?php echo e($user[0]->{'city'}); ?>" id="city" type="text" class="form-control">
</div>
</div>
<div class="col-sm-6 col-md-3">
<div class="form-group">
<label for="zip" class="form-label">ZIP</label>
<input name="ZIP" value="<?php echo e($user[0]->{'ZIP'}); ?>" id="zip" type="text" class="form-control">
</div>
</div>
<div class="col-sm-6 col-md-3">
<div class="form-group">
<label for="state" class="form-label">State</label>
<input name="state" value="<?php echo e($user[0]->{'State'}); ?>" id="state" type="text" class="form-control">
</div>
</div>
<div class="col-sm-6 col-md-3">
<div class="form-group">
<label for="country" class="form-label">Country</label>
<input name="country" value="<?php echo e($user[0]->{'country'}); ?>" id="country" type="text" class="form-control">
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label for="phone" class="form-label">Telephone</label>
<input name="phone" value="<?php echo e($user[0]->{'phone'}); ?>" id="phone" type="text" class="form-control">
</div>
</div>
<div class="col-sm-12 text-center">
<button name"submit" type="submit" class="btn btn-primary">
<i class="fa fa-save">
Save Changes
</i>
</boutton>
</div>
</div>
</form>
</div>
</div>
</div>
</section>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('master', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>