58 lines
2.5 KiB
PHP
58 lines
2.5 KiB
PHP
@extends('layouts.app')
|
|
|
|
@section('title')
|
|
{{ $title }}
|
|
@endsection
|
|
|
|
@section('content')
|
|
<section class="padding_btm" >
|
|
<!--我的收藏-->
|
|
<nav class="nav beer-order" data-display="" data-selector="span" data-show-single="true" data-active-class="active" data-animate="false">
|
|
<span data-href="{{ route('lottery.logs',['type'=>'goods']) }}" @if($type=='goods') class="active" @endif>商品</span>
|
|
<span data-href="{{ route('lottery.logs',['type'=>'activity']) }}" @if($type=='activity') class="active" @endif>服务</span>
|
|
<span data-href="{{ route('lottery.logs',['type'=>'coupon']) }}" @if($type=='coupon') class="active" @endif>代金券</span>
|
|
</nav>
|
|
@if($lists->isEmpty())
|
|
<div class="in display">
|
|
<div class="empty">
|
|
<img src="/assets/home/img/k_null2.jpg">
|
|
<p>还没有奖品</p>
|
|
</div>
|
|
</div>
|
|
@else
|
|
<!--抽奖奖品-->
|
|
<ul class="enroll_gif">
|
|
@foreach ($lists as $log)
|
|
<li>
|
|
<div class="recommend_img img-bg">
|
|
<span style="background-image:url({{ $log->gift->item->storage->path??'/assets/home/img/q0101.jpg' }})"></span>
|
|
</div>
|
|
<div class="recommend_list_block">
|
|
<div class="recommend_name text-nowrap" >{{ $log->gift->getTitle() }}</div>
|
|
<div class="enroll_gif_describe">
|
|
@if($log->gift->class == 'goods')
|
|
<div class="enroll_gif_money"><span class="text-nowrap">{{ $log->gift->item->getPrice() }}</span></div>
|
|
|
|
@if ($log->order->canAddress())
|
|
<div class="enroll_gif_btn">
|
|
<button type="button" data-href="{{ route('gifts.address',['order'=>$log->order,'callback'=>route('lottery.logs',['type'=>$type])]) }}" class="btn order-list-btn">设收货地址</button>
|
|
</div>
|
|
@endif
|
|
<div class="enroll_gif_btn">
|
|
<button type="button" data-href="{{ route('gifts.show', $log->order->orderid) }}" class="btn order-list-btn">订单详情</button>
|
|
</div>
|
|
@else
|
|
<div class="enroll_gif_money"><span class="text-nowrap">{{ $log->gift->item->start_at->toDateString() }} 至 {{ $log->gift->item->end_at->toDateString() }}</span></div>
|
|
@endif
|
|
|
|
</div>
|
|
</div>
|
|
</li>
|
|
@endforeach
|
|
</ul>
|
|
@endif
|
|
|
|
</section>
|
|
|
|
@endsection
|