<div class="ub-panel margin-top">
    <div class="head">
        <div class="title">
            查询结果
        </div>
    </div>
    <div class="body">
        @if(empty($stocks))
            <div class="ub-empty">
                <div class="icon">
                    <i class="iconfont icon-empty-box"></i>
                </div>
                <div class="text">
                    没有查询到结果
                </div>
            </div>
        @endif
        @foreach($stocks as $stock)

            <div class="tw-bg-gray-100 tw-p-4 tw-rounded">
                <div class="ub-pair">
                    <div class="name">{{modstart_config('Faka_FieldNameNo','卡号')}}：</div>
                    <div class="value">
                        <code>{{$stock['no']}}</code>
                        <a class="ub-text-muted tw-ml-2" title="复制" data-clipboard-text="{{$stock['no']}}" href="javascript:;"><i class="iconfont icon-copy"></i></a>
                    </div>
                </div>
                @if(!empty($stock['secret']))
                    <div class="ub-pair">
                        <div class="name">{{modstart_config('Faka_FieldNameSecret','卡密')}}：</div>
                        <div class="value">
                            <code>{{$stock['secret']}}</code>
                            <a class="ub-text-muted tw-ml-2" title="复制" data-clipboard-text="{{$stock['secret']}}" href="javascript:;"><i class="iconfont icon-copy"></i></a>
                        </div>
                    </div>
                @endif
                @if(!empty($stock['expire']))
                    <div class="ub-pair">
                        <div class="name">{{modstart_config('Faka_FieldNameExpire','过期时间')}}：</div>
                        <div class="value">
                            <code>{{$stock['expire']}}</code>
                            <a class="ub-text-muted tw-ml-2" title="复制" data-clipboard-text="{{$stock['expire']}}" href="javascript:;"><i class="iconfont icon-copy"></i></a>
                        </div>
                    </div>
                @endif
            </div>
        @endforeach
    </div>
</div>
