I am doing web project Using Laravel 5. I used to blade template format to create views.
I take database some integer value (eg : 5) and also get specific colour code for that value(eg : red ,green e.t.c)
I want to draw rectangle for this number and put background colour to that rectangle. Now I use for-each loop and draw rectangles. but they are drawing vertically.
===========current code ==================================================
<!-- Main content -->
<section class="content fluid">
<div class="row">
<div class="box box-warning">
@foreach($rooms as $room)
<div style="width:50px;height:50px;border:1px solid #000;">{{$room->id }}</div><br/>
@endforeach
</div><!-- /.box -->
</div>
</div><!-- /.row -->
</section><!-- /.content -->
current code out put.
please , expect some expert help.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire