@extends('backend.layouts.main') @section('title') {{ __('Games') }} @endsection @section('content') @if($games->isEmpty())
{{ __('User') }} | @component('components.tables.sortable-column', ['id' => 'game', 'sort' => $sort, 'order' => $order]) {{ __('Game') }} @endcomponent{{ __('Result') }} | @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||||||
---|---|---|---|---|---|---|---|
{{ $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') }} |