| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- @extends('user.layouts')
- @section('css')
- <link href="/assets/global/plugins/fancybox/source/jquery.fancybox.css" rel="stylesheet" type="text/css" />
- <style>
- .fancybox > img {
- width: 75px;
- height: 75px;
- }
- </style>
- @endsection
- @section('title', '控制面板')
- @section('content')
- <!-- BEGIN CONTENT BODY -->
- <div class="page-content">
- <!-- BEGIN PAGE BREADCRUMB -->
- <ul class="page-breadcrumb breadcrumb">
- <li>
- <a href="{{url('user/orderList')}}">消费记录</a>
- <i class="fa fa-circle"></i>
- </li>
- </ul>
- <!-- END PAGE BREADCRUMB -->
- <!-- BEGIN PAGE BASE CONTENT -->
- <div class="row">
- <div class="col-md-12">
- <!-- BEGIN EXAMPLE TABLE PORTLET-->
- <div class="portlet light bordered">
- <div class="portlet-title">
- <div class="caption font-dark">
- <i class="icon-wallet font-dark"></i>
- <span class="caption-subject bold uppercase"> 消费记录 </span>
- </div>
- </div>
- <div class="portlet-body">
- <div class="table-scrollable">
- <table class="table table-striped table-bordered table-hover table-checkable order-column" id="sample_1">
- <thead>
- <tr>
- <th> ID </th>
- <th> 订单编号 </th>
- <th> 商品信息 </th>
- <th> 创建时间 </th>
- </tr>
- </thead>
- <tbody>
- @if($orderList->isEmpty())
- <tr>
- <td colspan="4">暂无数据</td>
- </tr>
- @else
- @foreach($orderList as $key => $order)
- <tr class="odd gradeX">
- <td> {{$key + 1}} </td>
- <td> {{$order->orderId}} </td>
- <td>
- @foreach($order->goodsList as $goods)
- {{$goods->goods_name}}(¥{{$goods->price}})
- @endforeach
- </td>
- <td>{{$order->created_at}}</td>
- </tr>
- @endforeach
- @endif
- </tbody>
- </table>
- </div>
- <div class="row">
- <div class="col-md-5 col-sm-5">
- <div class="dataTables_info" role="status" aria-live="polite">共 {{$orderList->total()}} 个记录</div>
- </div>
- <div class="col-md-7 col-sm-7">
- <div class="dataTables_paginate paging_bootstrap_full_number pull-right">
- {{ $orderList->links() }}
- </div>
- </div>
- </div>
- </div>
- </div>
- <!-- END EXAMPLE TABLE PORTLET-->
- </div>
- </div>
- <!-- END PAGE BASE CONTENT -->
- </div>
- <!-- END CONTENT BODY -->
- @endsection
- @section('script')
- <script src="/assets/global/plugins/fancybox/source/jquery.fancybox.js" type="text/javascript"></script>
- <script src="/assets/global/plugins/bootbox/bootbox.min.js" type="text/javascript"></script>
- <script type="text/javascript">
- function buy(goods_id) {
- window.location.href = '{{url('user/addOrder?goods_id=')}}' + goods_id;
- }
- // 编辑商品
- function exchange(id) {
- //
- }
- // 查看商品图片
- $(document).ready(function () {
- $('.fancybox').fancybox({
- openEffect: 'elastic',
- closeEffect: 'elastic'
- })
- })
- </script>
- @endsection
|