Twitter bootstrap 警报未正确显示

Twitter bootstrap 警报未正确显示,twitter-bootstrap,laravel-4,Twitter Bootstrap,Laravel 4,这是我为所谓的newstickers编写的代码,它基本上是引导程序中的警报: <div class="container"> @if ($newstickers->count()) @foreach($newstickers as $newsticker) <div class=" <?php $options = array( 1 => "alert", 2 => "alert ale

这是我为所谓的newstickers编写的代码,它基本上是引导程序中的警报:

    <div class="container">
@if ($newstickers->count())
@foreach($newstickers as $newsticker)

      <div class="
      <?php $options = array(

        1 => "alert",
        2 => "alert alert-success",
        3 => "alert alert-error",
        4 => "alert alert-info"

        );

    echo $options[$newsticker->alerttype];?>"></div><span class="
        <?php $options = array(

        1 => "label",
        2 => "label label-success",
        3 => "label label-warning",
        4 => "label label-important",
        5 => "label label-info",
        6 => "label label-inverse"

        );

    echo $options[$newsticker->labeldatetype];?>">{{{ date("M d, Y - g:i A", strtotime($newsticker->updated_at)) }}}</span>&nbsp;<span class="
        <?php $options = array(

        1 => "label",
        2 => "label label-success",
        3 => "label label-warning",
        4 => "label label-important",
        5 => "label label-info",
        6 => "label label-inverse"

        );

    echo $options[$newsticker->labeltype];?>">{{{ $newsticker->label }}}</span>
        <button type="button" class="close" data-dismiss="alert">&times;</button>

        <td><small>{{{ $newsticker->content }}}</small><div class="pull-right">
    @if(Auth::check())
    @if (Auth::user()->isAdmin())
            <a href="{{ URL::route('admin.newstickers.edit', $newsticker->id) }}"><i class="icon-pencil icon-white"></i></a>&nbsp;<a href="{{ URL::route('admin.newstickers.destroy', $newsticker->id) }}"><i class="icon-remove"></i></a></div></td>
        @endif
        @endif
      </div>

@endforeach

@else

      <div class="alert alert-info"><span class="label label-info">No newstickers</span>

        <button type="button" class="close" data-dismiss="alert">&times;</button>
        <td><small>There are no newstickers. If you wish to create a new one, you should head to our <strong><a href="{{ URL::to('admin/newstickers') }}">newstickers management page!</a></strong></small></td>
      </div>

    </div>

@endif
</div>

@如果($newstickers->count())
@foreach($newstickers作为$newsticker)

echo$options[$newsticker->alerttype];?>“>你能把生成的html放在这里吗?@JackPoint当然,在这里