@extends('backend.layouts.main') @section('title') {{ __('Games') }} @endsection @section('content') @if($games->isEmpty()) @else @component('components.tables.sortable-column', ['id' => 'id', 'sort' => $sort, 'order' => $order]) {{ __('ID') }} @endcomponent @component('components.tables.sortable-column', ['id' => 'game', 'sort' => $sort, 'order' => $order]) {{ __('Game') }} @endcomponent @component('components.tables.sortable-column', ['id' => 'bet', 'sort' => $sort, 'order' => $order, 'class' => 'text-right']) {{ __('Bet') }} @endcomponent @component('components.tables.sortable-column', ['id' => 'win', 'sort' => $sort, 'order' => $order, 'class' => 'text-right']) {{ __('Win') }} @endcomponent @component('components.tables.sortable-column', ['id' => 'played', 'sort' => $sort, 'order' => $order, 'class' => 'text-right']) {{ __('Played') }} @endcomponent @foreach ($games as $game) @endforeach
{{ __('User') }} {{ __('Result') }}
{{ $game->id }} {{ $game->account->user->name }} @if($game->account->user->role == App\Models\User::ROLE_ADMIN) {{ __('app.user_role_'.$game->account->user->role) }} @elseif($game->account->user->role == App\Models\User::ROLE_BOT) {{ __('app.user_role_'.$game->account->user->role) }} @endif {{ $game->title }} {{ $game->gameable->result }} {{ $game->_bet }} {{ $game->_win }} {{ $game->updated_at->diffForHumans() }} {{ __('View') }}
{{ $games->appends(['sort' => $sort, 'order' => $order, 'uid' => request()->query('uid')])->links() }}
@endif @endsection