Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @foreach($aboutcontent as $about)
- <div class="col-md-4 text-center">
- <div class="thumbnail">
- <img id="" class="img-responsive" src="images/{{ $about->aboutimg }}" alt="">
- <div class="caption">
- <h3>{{ $about->aboutname }}</h3>
- <p>{{ $about->aboutinfo }}</p>
- </div>
- </div>
- </div>
- @endforeach
- @foreach($aboutcontent as $key => $about)
- @if($key > 0){
- <div class="col-md-4 text-center">
- <div class="thumbnail">
- <img id="" class="img-responsive" src="images/{{ $about->aboutimg }}" alt="">
- <div class="caption">
- <h3>{{ $about->aboutname }}</h3>
- <p>{{ $about->aboutinfo }}</p>
- </div>
- </div>
- </div>
- @endif;
- @endforeach
- <?php $count = 0;?>
- @foreach
- @if($count>1)
- <div class="col-md-4 text-center">
- <div class="thumbnail">
- <img id="" class="img-responsive" src="images/{{ $about->aboutimg }}" alt="">
- <div class="caption">
- <h3>{{ $about->aboutname }}</h3>
- <p>{{ $about->aboutinfo }}</p>
- </div>
- </div>
- </div>
- @endif
- $count++
- @endforeach
- @foreach(array_slice($aboutcontent, 1) as $about)
- <div class="col-md-4 text-center">
- <div class="thumbnail">
- <img id="" class="img-responsive" src="images/{{ $about->aboutimg }}" alt="">
- <div class="caption">
- <h3>{{ $about->aboutname }}</h3>
- <p>{{ $about->aboutinfo }}</p>
- </div>
- </div>
- </div>
- @endforeach
- // Notice you start at 1 and your first
- // elem is 0 so... ta da... skipped
- @for ($i = 1; $i < count($aboutcontents); $i++){
- $about = $aboutcontents[$i]; //This is the object
- //now use $about as you would
- }
- @foreach ($rows as $row)
- @if ($loop->first) @continue @endif
- {{ $row->name }}<br/>
- @endforeach
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement