Skip to content

Commit

Permalink
Use translations instead of the reason
Browse files Browse the repository at this point in the history
Use translations instead of the reason
  • Loading branch information
sebastiaanspeck committed Oct 16, 2018
1 parent dc20baa commit 6e909df
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions resources/views/fixtures/fixtures_details.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -543,24 +543,27 @@
<tr>
<td></td>
<td style="width: 1%"><img src="/images/flags/shiny/16/{{$home_sidelined_player->nationality}}.png"></td>
<td style="text-align: left">{{$home_sidelined_player->common_name}} <span style="color: #A9A9A9">({{$home_sidelined_player->reason}})</span></td>
<td style="text-align: left">{{$home_sidelined_player->common_name}} <span style="color: #A9A9A9">(@lang('injuries.' . $home_sidelined_player->reason))</span></td>
<td></td>
<td style="text-align: right">{{$away_sidelined_player->common_name}} <span style="color: #A9A9A9">({{$away_sidelined_player->reason}})</span></td>
<td style="text-align: right">{{$away_sidelined_player->common_name}} <span style="color: #A9A9A9">(@lang('injuries.' . $away_sidelined_player->reason))</span></td>
<td style="width: 1%"><img src="/images/flags/shiny/16/{{$away_sidelined_player->nationality}}.png"></td>
</tr>
@elseif(isset($home_sidelined_player) && !isset($away_sidelined_player))
<tr>
<td></td>
<td style="width: 1%"><img src="/images/flags/shiny/16/{{$home_sidelined_player->nationality}}.png"></td>
<td style="text-align: left">{{$home_sidelined_player->common_name}} <span style="color: #A9A9A9">({{$home_sidelined_player->reason}})</span></td>
<td style="text-align: left">{{$home_sidelined_player->common_name}} <span style="color: #A9A9A9">(@lang('injuries.' . $home_sidelined_player->reason))</span></td>
<td></td>
<td></td>
<td></td>
</tr>
@elseif(!isset($home_sidelined_player) && isset($away_sidelined_player))
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td style="text-align: right">{{$away_sidelined_player->common_name}} <span style="color: #A9A9A9">({{$away_sidelined_player->reason}})</span></td>
<td style="text-align: right">{{$away_sidelined_player->common_name}} <span style="color: #A9A9A9">(@lang('injuries.' . $away_sidelined_player->reason))</span></td>
<td style="width: 1%"><img src="/images/flags/shiny/16/{{$away_sidelined_player->nationality}}.png"></td>
</tr>
@endif
Expand Down

0 comments on commit 6e909df

Please sign in to comment.