@{
    Layout = "~/Views/Shared/_AMESLayout.cshtml";
}

<div class="layui-card-body">
    <div class="layui-row">
        <table class="layui-table" lay-even>
            <thead>
                <tr>
                    <th>
                        測試項目
                    </th>
                    <th>
                        結果
                    </th>
                </tr>
            </thead>
            <tbody>
                @foreach (var item in ViewBag.Model)
                {
                    <tr>
                        <td>
                            @item.Name
                        </td>
                        <td>
                            @if (item.Value == "FAIL")
                            {
                                <span style="color:red">@item.Value</span>
                            }
                            else
                            {
                                <span style="color:blue">@item.Value</span>
                            }
                        </td>
                    </tr>
                }
            </tbody>
        </table>
    </div>
</div>

@section Scripts{
    <script type="text/javascript">
        console.log(@ViewBag.WIP_ID);
    </script>
        }