Created
October 30, 2017 04:25
-
-
Save ahmadshobirin/e4f2ce062d8f77f224b11424ba88934c to your computer and use it in GitHub Desktop.
random css when looping
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php $colors = ['bg-aqua','bg-green','bg-yellow','bg-red']; ?> | |
@foreach($dataGudang as $gudang) | |
<div class="col-lg-4 col-xs-8"> | |
<!-- small box --> | |
<div class="small-box {{ $colors[rand(0,3)] }}"> | |
</div> | |
</div> | |
@endforeach |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment