<!DOCTYPE html>
<html class="ui-mobile">
<head>
    <meta charset="UTF-8"/>
    <meta name="viewport" content="user-scalable=yes, width=device-width, initial-scale=1.0, maximum-scale=1.0"/>
    <title>产品二维码追溯查询系统</title>
    <link href="/css/style.css" rel="stylesheet" type="text/css"/>
    <link rel="stylesheet" type="text/css" href="/css/rk1126.css"/>
    <script type="text/javascript" src="/js/jquery-1.8.0.min.js"></script>
    <style type="text/css">
        .top, .prolisthome .claname .cls {
            background-color: #0d4a38;
        }

        .prolisthome .claname {
            border-top: solid 1px #0d4a38;
        }
    </style>
</head>
<body class="ui-mobile-viewport ui-overlay-a" style="zoom: 1;background-color: #eeeeee;">
<div class="top">
    <div class="log_btb">种子二维码追溯查询系统</div>
</div>
<img src="/uploads/top.jpg" style="width:100%;"/>
<div class="prolisthome" style="width: 97%; margin-top:10px;margin-right:auto; margin-left:auto; ">
    <!-- 二维码信息 -->
    <div class="claname bor_4">
        <div class="cls colo_4"><a class="key-click">　二维码信息</a></div>
    </div>
    <div class="proinfo" id="sub4" style="display:block">
        <table style="font-size:16px; width: 97%; margin-top:10px;margin-right:auto; margin-left:auto;border-radius: 8px 8px 8px 8px;border: 0px; ">
            <tbody>
            <tr style="border: 0px;color: #000;">
                <td width="30%" class="td"
                    style="border-color:#cccccc;  height: 30px;  border-bottom: 0px;border-top: 0px;border-left: 0px;">
                    品种名称：
                </td>
                <td width="70%" class="td" id="product1" style="height: 30px;border: 0px;">{{ $good->name }}</td>
            </tr>
            </tbody>
        </table>
        <table style="font-size:16px; width: 97%; margin-top:10px;margin-right:auto; margin-left:auto;border-radius: 8px 8px 8px 8px;border: 0px; ">
            <tbody>
            <tr style="border: 0px;color: #000;">
                <td width="30%" class="td"
                    style="border-color:#cccccc; height: 30px;border-bottom: 0px;border-top: 0px;border-left: 0px;">
                    生产经营者：
                </td>
                <td width="70%" class="td" id="companyname" style="height: 30px;border: 0px;">{{ $good->operator }}</td>
            </tr>
            </tbody>
        </table>
        <table style="font-size:16px; width: 97%; margin-top:10px;margin-right:auto; margin-left:auto;border-radius: 8px 8px 8px 8px;border: 0px; ">
            <tbody>
            <tr style="border: 0px;color: #000;">
                <td width="30%" class="td"
                    style="border-color:#cccccc; height: 30px;border-bottom: 0px;border-top: 0px;border-left: 0px;">
                    单元识别码：
                </td>
                <td width="70%" class="td" id="barcode"
                    style="height: 30px;border: 0px;">{{ $trace->key }}</td>
            </tr>
            </tbody>
        </table>
        <table style="font-size:16px; width: 97%; margin-top:10px;margin-right:auto; margin-left:auto;border-radius: 8px 8px 8px 8px;border: 0px; ">
            <tbody>
            <tr style="border: 0px;color: #000;">
                <td width="30%" class="td"
                    style="border-color:#cccccc; height: 30px;border-bottom: 0px;border-top: 0px;border-left: 0px;">
                    追溯网址：
                </td>
                <td width="70%" class="td" id="address" style="height: 30px;border: 0px;"><a
                            href="{{ $trace->url }}?description=1"
                            style="text-decoration: underline;">{{$trace->url }}</a></td>
            </tr>
            </tbody>
        </table>
    </div>

@if(request('description'))
    <!--产品信息-->
        <div class="claname bor_1" id="cpxx">
            <div class="cls colo_1"><a class="key-click">　产品信息</a></div>
        </div>
        <div class="proinfo" id="sub1" style="display:none">
            <table style="font-size:16px; width: 97%; margin-top:10px;margin-right:auto; margin-left:auto;border-radius: 8px 8px 8px 8px;border: 0px; ">
                <tbody>
                <tr style="border: 0px;color: #000;">
                    <td width="30%" class="td"
                        style="border-color:#cccccc; height: 30px;border-bottom: 0px;border-top: 0px;border-left: 0px;">
                        产品名称：
                    </td>
                    <td width="70%" class="td" id="pname"
                        style="height: 30px;border: 0px;">{{ $good->name }}</td>
                </tr>
                </tbody>
            </table>
            <table style="font-size:16px; width: 97%; margin-top:10px;margin-right:auto; margin-left:auto;border-radius: 8px 8px 8px 8px;border: 0px; ">
                <tbody>
                <tr style="border: 0px;color: #000;">
                    <td width="30%" class="td"
                        style="border-color:#cccccc; height: 30px;border-bottom: 0px;border-top: 0px;border-left: 0px;">
                        产品批次：
                    </td>
                    <td width="70%" class="td" id="batchno"
                        style="height: 30px;border: 0px;">{{ $good->product_pici }}</td>
                </tr>
                </tbody>
            </table>
            <table style="font-size:16px; width: 97%; margin-top:10px;margin-right:auto; margin-left:auto;border-radius: 8px 8px 8px 8px;border: 0px; ">
                <tbody>
                <tr style="border: 0px;color: #000;">
                    <td width="30%" class="td"
                        style="border-color:#cccccc; height: 30px;border-bottom: 0px;border-top: 0px;border-left: 0px;">
                        产品产地：
                    </td>
                    <td width="70%" class="td" id="batchno"
                        style="height: 30px;border: 0px;">{{ $good->product_area }}</td>
                </tr>
                </tbody>
            </table>

            <table style="font-size:16px; width: 97%; margin-top:10px;margin-right:auto; margin-left:auto;border-radius: 8px 8px 8px 8px;border: 0px; ">
                <tbody>
                <tr style="border: 0px;color: #000;">
                    <td width="30%" class="td"
                        style="border-color:#cccccc; height: 30px;border-bottom: 0px;border-top: 0px;border-left: 0px;">
                        查询次数：
                    </td>
                    <td width="70%" class="td" id="select1"
                        style="height: 30px;border: 0px;">{{ $trace->look_count }}</td>
                </tr>
                </tbody>
            </table>
            <table style="font-size:16px; width: 97%; margin-top:10px;margin-right:auto; margin-left:auto;border-radius: 8px 8px 8px 8px;border: 0px; ">
                <tbody>
                <tr style="border: 0px;color: #000;">
                    <td width="30%" class="td"
                        style="border-color:#cccccc; height: 30px;border-bottom: 0px;border-top: 0px;border-left: 0px;">
                        首次时间：
                    </td>
                    <td width="70%" class="td" id="first1"
                        style="height: 30px;border: 0px;">{{ $trace->look_time }}</td>
                </tr>
                </tbody>
            </table>
            <table style="font-size:16px; width: 97%; margin-top:10px;margin-right:auto; margin-left:auto;border-radius: 8px 8px 8px 8px;border: 0px; ">
                <tbody>
                <tr style="border: 0px;color: #000;">
                    <td width="30%" class="td"
                        style="border-color:#cccccc; height: 30px;border-bottom: 0px;border-top: 0px;border-left: 0px;">
                        包装规格：
                    </td>
                    <td width="70%" class="td" id="codelevel1"
                        style="height: 30px;border: 0px;">{{ $good->standard }}</td>
                </tr>
                </tbody>
            </table>


            @if($good->shengchan_id)
                <table style="font-size:16px; width: 97%; margin-top:10px;margin-right:auto; margin-left:auto;border-radius: 8px 8px 8px 8px;border: 0px; ">
                    <tbody>
                    <tr style="border: 0px;color: #000;">
                        <td width="30%" class="td"
                            style="border-color:#cccccc; height: 30px;border-bottom: 0px;border-top: 0px;border-left: 0px;">
                            经营许可证号：
                        </td>
                        <td width="70%" class="td" id="batchno"
                            style="height: 30px;border: 0px;">{{ $good->shengchan_id }}</td>
                    </tr>
                    </tbody>
                </table>
            @endif

            @if($good->card_id)
                <table style="font-size:16px; width: 97%; margin-top:10px;margin-right:auto; margin-left:auto;border-radius: 8px 8px 8px 8px;border: 0px; ">
                    <tbody>
                    <tr style="border: 0px;color: #000;">
                        <td width="30%" class="td"
                            style="border-color:#cccccc; height: 30px;border-bottom: 0px;border-top: 0px;border-left: 0px;">
                            检疫证号：
                        </td>
                        <td width="70%" class="td" id="batchno"
                            style="height: 30px;border: 0px;">{{ $good->card_id }}</td>
                    </tr>
                    </tbody>
                </table>
            @endif

            @if($good->product_pici)
                <table style="font-size:16px; width: 97%; margin-top:10px;margin-right:auto; margin-left:auto;border-radius: 8px 8px 8px 8px;border: 0px; ">
                    <tbody>
                    <tr style="border: 0px;color: #000;">
                        <td width="30%" class="td"
                            style="border-color:#cccccc; height: 30px;border-bottom: 0px;border-top: 0px;border-left: 0px;">
                            检测日期：
                        </td>
                        <td width="70%" class="td" id="batchno"
                            style="height: 30px;border: 0px;">{{ $good->product_pici }}</td>
                    </tr>
                    </tbody>
                </table>
            @endif

        </div>
        <!--追溯信息-->
        <div class="claname bor_3" id="zsxx">
            <div class="cls colo_3"><a class="key-click">　物流信息</a></div>
        </div>
        <div class="proinfo" id="sub3" style="display:none">
            <table style="font-size:16px; width: 97%; margin-top:10px;margin-right:auto; margin-left:auto;border-radius: 8px 8px 8px 8px;border: 0px; ">
                <tbody>
                <tr style="border: 0px;color: #000;">
                    <td width="30%" class="td"
                        style="border-color:#cccccc; height: 30px;border-bottom: 0px;border-top: 0px;border-left: 0px;">
                        发货商：
                    </td>
                    <td width="70%" class="td" id="fhs" style="height: 30px;border: 0px;">{{ $good->consignor }}</td>
                </tr>
                </tbody>
            </table>
            <table style="font-size:16px; width: 97%; margin-top:10px;margin-right:auto; margin-left:auto;border-radius: 8px 8px 8px 8px;border: 0px; ">
                <tbody>
                <tr style="border: 0px;color: #000;">
                    <td width="30%" class="td"
                        style="border-color:#cccccc; height: 30px;border-bottom: 0px;border-top: 0px;border-left: 0px;">
                        发货时间：
                    </td>
                    <td width="70%" class="td" id="fhsj"
                        style="height: 30px;border: 0px;">{{ $good->delivery_time }}</td>
                </tr>
                </tbody>
            </table>
            <table style="font-size:16px; width: 97%; margin-top:10px;margin-right:auto; margin-left:auto;border-radius: 8px 8px 8px 8px;border: 0px; ">
                <tbody>
                <tr style="border: 0px;color: #000;">
                    <td width="30%" class="td"
                        style="border-color:#cccccc; height: 30px;border-bottom: 0px;border-top: 0px;border-left: 0px;">
                        经销商：
                    </td>
                    <td width="70%" class="td" id="jxs" style="height: 30px;border: 0px;">{{ $good->dealer }}</td>
                </tr>
                </tbody>
            </table>
        </div>

        <!--生产信息-->
        <div class="claname bor_5" id="scxx">
            <div class="cls colo_5"><a class="key-click">　公司信息</a></div>
        </div>
        <div class="proinfo" id="sub5" style="display:none">
            <table style="font-size:16px; width: 97%; margin-top:10px;margin-right:auto; margin-left:auto;border-radius: 8px 8px 8px 8px;border: 0px; ">
                <tbody>
                <tr style="border: 0px;color: #000;">
                    <td width="30%" class="td"
                        style="border-color:#cccccc; height: 30px;border-bottom: 0px;border-top: 0px;border-left: 0px;">
                        公司名称：
                    </td>
                    <td width="70%" class="td" id="place"
                        style="height: 30px;border: 0px;">{{ $good->company }}</td>
                </tr>
                </tbody>
            </table>
            <table style="font-size:16px; width: 97%; margin-top:10px;margin-right:auto; margin-left:auto;border-radius: 8px 8px 8px 8px;border: 0px; ">
                <tbody>
                <tr style="border: 0px;color: #000;">
                    <td width="30%" class="td"
                        style="border-color:#cccccc; height: 30px;border-bottom: 0px;border-top: 0px;border-left: 0px;">
                        公司网站：
                    </td>
                    <td width="70%" class="td" id="jgbatch"
                        style="height: 30px;border: 0px;">
                        <a href="{{$good->company_website}}">{{$good->company_website}}</a></td>
                </tr>
                </tbody>
            </table>
        </div>
    @endif

</div>
<p style="text-align: center;color: red;font-size: 16px;margin: 0 0 15px;">查询结果：您查询的是正牌产品，请放心购买</p>
<p style="text-align:center">&copy;技术支持：希梦耐康网络科技</p>

<script type="text/javascript">
    $(function () {
        $('.claname').click(function () {
            var index = $(this).index('.claname');
            $('.proinfo').eq(index).fadeIn().siblings('.proinfo').hide();
        });
    });
</script>

</body>
</html>
