blob: 2e95effaf04c1ea6a495661b47f661e413df2a61 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
<?php
use HebrewParseTrainer\Verb;
?>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Current suggestions</h3>
</div>
<div class="panel-body">
<table class="table table-hover table-condensed suggestions">
<thead>
<tr>
<th>Verb</th>
<th>Root</th>
<th>Parsing</th>
<th colspan="3">Votes</th>
</tr>
</thead>
<tbody>
@forelse(Verb::where('active', 0)->orderBy('verb')->get() as $verb)
<tr>
<td class="large">{{ $verb->verb }}</td>
<td class="large">{{ $verb->root }}</td>
<td>{{ $verb->stem }} {{ $verb->tense }} {{ $verb->person }}{{ $verb->gender }}{{ $verb->number }}</td>
<td class="vote-cell"><button data-vote="0" data-verb="{{ $verb->id }}" class="vote btn btn-{{ $verb->userVote(Auth::user()) < 0 ? 'danger' : 'default' }}">-</button></td>
<td class="vote-cell"><span class="vote-count btn">{{ $verb->voteCount() }}</span></td>
<td class="vote-cell"><button data-vote="1" data-verb="{{ $verb->id }}" class="vote btn btn-{{ $verb->userVote(Auth::user()) > 0 ? 'success' : 'default' }}">+</button></td>
</tr>
@empty
<tr><td colspan="4">There are no active suggestions. Why not add a verb yourself?</td></tr>
@endforelse
</tbody>
</table>
</div>
</div>
|