@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | $prefix = "directElimination"; |
| 3 | -if ($championship->hasPreliminary() && $numRound ==1){ |
|
| 3 | +if ($championship->hasPreliminary() && $numRound == 1) { |
|
| 4 | 4 | $prefix = "preliminary"; |
| 5 | 5 | } |
| 6 | -$className = $prefix."_select"; |
|
| 7 | -$selectName = $prefix."_fighters[]"; |
|
| 6 | +$className = $prefix . "_select"; |
|
| 7 | +$selectName = $prefix . "_fighters[]"; |
|
| 8 | 8 | ?> |
| 9 | 9 | <select name="{{ $selectName }}" class={{$className}}> |
| 10 | 10 | <option {{ $selected == '' ? ' selected' : '' }} ></option> |
@@ -118,8 +118,8 @@ |
||
| 118 | 118 | $query = FightersGroup::with('fights') |
| 119 | 119 | ->where('championship_id', $championship->id); |
| 120 | 120 | |
| 121 | - if ($championship->hasPreliminary()){ |
|
| 122 | - $query = $query->where('round','>',1); |
|
| 121 | + if ($championship->hasPreliminary()) { |
|
| 122 | + $query = $query->where('round', '>', 1); |
|
| 123 | 123 | } |
| 124 | 124 | $groups = $query->get(); |
| 125 | 125 | $fighters = $request->fighters; |