@extends('frontend.layouts.main') @section('title') {{ $user->name }} @endsection @section('title_extra') @auth @if($user->id == auth()->user()->id) {{ __('Edit') }} @endif @endauth @endsection @section('content')

{{ __('Played :x games', ['x' => $total_played]) }}

{{ __('Last played :t', ['t' => $last_played ? $last_played->diffForHumans() : __('never')]) }}

@if($total_played>0)

{{ __('Games by result') }}

{{ __('Games by type') }}

{{ __('Max win by game') }}

@foreach ($games_by_type->sortByDesc('max_win') as $game) @endforeach
{{ __('Game') }} {{ __('Max win') }}
{{ $game['category'] }} {{ $game['_max_win'] }}
@endif

{{ __('Recent games') }}

@if(!$recent_games->isEmpty()) @else @endif
@endsection