@auth @php $userStatus = \Auth::user()->status; $name_surname = explode(' ', \Auth::user()->name); if($userStatus != 0){ $status = \App\Status::where('id', $userStatus)->first(); } $gamesAll = round(\Auth::user()->win_games + \Auth::user()->lose_games); @endphp
@if(\Auth::user()->status == 0)
Новичок
@else
{{$status->name}}
@endif
{{$name_surname[0]}} {{$name_surname[1]}} ID: {{\Auth::user()->id}}
Пополнение {{\Auth::user()->deps}}
Вывод {{\Auth::user()->withdraws}}
Общий выигрыш {{\Auth::user()->sum_win}}
Макс. выигрыш {{\Auth::user()->max_win}}
Рейтинг побед @if($gamesAll == 0) 0 @else{{(round(\Auth::user()->win_games / $gamesAll, 2) * 100)}}@endif %
Средняя ставка @if($gamesAll == 0) 0 @else{{(round(\Auth::user()->sum_bet / $gamesAll, 2))}} @endif
Всего игр {{(\Auth::user()->win_games + \Auth::user()->lose_games)}}
Светлая
Тёмная
@else @endauth