silent-auction/resources/views/winnerlist.blade.php

40 lines
1.0 KiB
PHP
Raw Permalink Normal View History

2018-06-11 13:43:21 -04:00
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-10 col-md-offset-1">
<div class="panel panel-default">
<div class="panel-heading">Winning Bidders</div>
<div class="panel-body">
<table align='center' class='table table-striped table-condensed table-hover table-bordered'>
@php
$i = 1;
// start first row
echo "<tr>";
foreach($winnerlist_results as $winnerlist_result){
2018-12-24 13:29:48 -05:00
echo "<td>" . $winnerlist_result->bidders->bidder_assigned_number . "</td>";
2018-06-11 13:43:21 -04:00
// do we need a new row?
if($i % 6 === 0){
echo "</tr><tr>";
}
// increase counter
$i++;
}
// end final row
echo "</tr>";
@endphp
</table>
</div>
</div>
</div>
</div>
</div>
@endsection