{if $player.image !== null} {/if}

{$player.name}

Дата рождения: {$player.birthday|date_format:"%d.%m.%Y"} (возраст: {$player.birthday|age} {$player.birthday|age|plural:"год,года,лет"})
Город: {$player.city}
{if $player.sportLabel != ""}
Спортивное звание: {$player.sportLabel}
{/if} {if count($seasons) > 0}

По сезонам:

{/if} {if count($games)>0} {foreach $games as $game} {$gr[$game.tournament][] = $game} {/foreach} {foreach $gr as $t=>$ggames} {foreach $ggames as $game} {/foreach} {/foreach}

Общая статистика:

{if $roles.player}{/if} {if count($deletes)>0} {foreach $deletes as $d} {if $d.delType == 'b'} {/if} {/foreach} {/if}
Участвовал в играх:{count($games)}
Голы:{$goals}
Голевые передачи:{$assistants}
Штрафных:{round($d.delete_seconds/60)} мин.
{if count($tournaments) > 0}

Статистика по турнирам:

{if $roles.player}{/if} {if $roles.vr}{/if} {if $roles.player}{/if} {if $roles.player}{/if} {if $roles.player}{/if} {if $roles.player}{/if} {if $roles.player}{/if} {if $roles.player}{/if} {foreach $tournaments as $t} {if $t.tournament.name !== null} {if $roles.player}{/if} {if $roles.vr}{/if} {if $roles.player}{/if} {if $roles.player}{/if} {if $roles.player}{/if} {if $roles.player}{/if} {if $roles.player}{/if} {if $roles.player}{/if} {/if} {/foreach}
Турнир Игргпропущены / из них 12мпс игрыпенуглсвВ свои воротаНереализованные пенальти
{$t.tournament|link:"tournament"} {$t.games}{$t.goals}{$t.missed} / {$t.missed_12m}{$t.assistants}{$t.goal_form_1}{$t.goal_form_2}{$t.goal_form_3}{$t.goal_form_4}{$t.goal_form_5}{$t.unrealized12m}
{else}
Данных по играм нет
{/if}

Участвовал в играх:

{foreach $games as $game} {if $game.name !== null}{/if} {/foreach}
Дата Город Матч Результат Сезон
{$game.play_date|date_format:"%d.%m.%Y"} {$game.play_city} {$game|link:"protocol"} {$game.score} {foreach $tournaments as $t}{if $game.tournament == $t.tournament._ID}{$t.season.name}{/if}{/foreach}
{/if}