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

86 lines
3.6 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 orders</h1><p class="lead">Your orders in one place.</p>
</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">Orders</li>
</ul>
</div>
</div>
</div>
</section>
<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="#" 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($user[0]->{'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="customer-orders.html" class="active 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-light"><?php echo e(count($user_orders)); ?></small></a>
<a href="<?php echo e(url('user/profile')); ?>" class="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">
<table class="table table-hover table-responsive-md">
<thead>
<tr>
<th>Order</th>
<th>Date</th>
<th>Total</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php $__currentLoopData = $user_orders; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $order): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<th># <?php echo e($order->id); ?></th>
<td><?php echo e($order->created_at); ?></td>
<td><?php echo e($order->total); ?></td>
<td><a href="#" class="btn btn-primary btn-sm">View</a></td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody>
</table>
</div>
</div>
</div>
</section>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('master', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>