laravel 5中html表的问题

laravel 5中html表的问题,html,laravel,Html,Laravel,我有一张用刀片锉成的桌子 <table style="width:80%" border="1"> <tr> <th>Code</th> <th>Type</th> <th>Issue</th> <th>Entry Type</th> <th>Value</th> </tr> <tr&

我有一张用刀片锉成的桌子

<table style="width:80%" border="1">
  <tr>
    <th>Code</th>
    <th>Type</th>
    <th>Issue</th>
    <th>Entry Type</th>
    <th>Value</th>
  </tr>
  <tr>
  @foreach($issues as $issue)
    <td>{{ $issue->code }}</td>
    <td>{{ $issue->type }}</td>
    <td>{{ $issue->issue }}</td>
    <td>{{ $issue->entry_type }}</td>
    <td>{{ $issue->value }}</td>
  @endforeach  
  </tr>
</table>
但是,它显示如下:

Code    Type    Issue   Entry Type  Value
ABC RMK UDID 67 list    ABC-U67 ABC RMK UDID 43 list    ABC-U43
<

它不仅在一行中显示了两条记录,而且还显示了一个我在代码中找不到的左尖括号。任何帮助都将不胜感激。我是新来Laravel的。

你的html有问题,不是Laravel。 标签应该在foreach中

在这里:


你的html有问题,不是laravel。 标签应该在foreach中

在这里:

应该是

<table style="width:80%" border="1">
    <tr>
        <th>Code</th>
        <th>Type</th>
        <th>Issue</th>
        <th>Entry Type</th>
        <th>Value</th>
    </tr>
    @foreach($issues as $issue)
        <tr>
            <td>{{ $issue->code }}</td>
            <td>{{ $issue->type }}</td>
            <td>{{ $issue->issue }}</td>
            <td>{{ $issue->entry_type }}</td>
            <td>{{ $issue->value }}</td>
        </tr>
    @endforeach
</table>
应该是

<table style="width:80%" border="1">
    <tr>
        <th>Code</th>
        <th>Type</th>
        <th>Issue</th>
        <th>Entry Type</th>
        <th>Value</th>
    </tr>
    @foreach($issues as $issue)
        <tr>
            <td>{{ $issue->code }}</td>
            <td>{{ $issue->type }}</td>
            <td>{{ $issue->issue }}</td>
            <td>{{ $issue->entry_type }}</td>
            <td>{{ $issue->value }}</td>
        </tr>
    @endforeach
</table>

我想你不是这个意思。是的,很抱歉是那个标记我想你不是这个意思。是的,很抱歉是个标记谢谢你们!它工作得很好。我还发现我的左括号隐藏在代码中。再次感谢,谢谢你们!它工作得很好。我还发现我的左括号隐藏在代码中。再次感谢。