@extends('layouts.app', ['page' => __('User Management'), 'pageSlug' => 'users'])

@section('content')
    <div class="row">
        <div class="col-md-12">
            <div class="card">
                <div class="card-header">
                    <h5 class="title">{{ __('Search Results') }}</h5>
                </div>
                    <table id="tableHorizontalWrapper" class="table table-hover table-sm text-center" cellspacing="0"width="50%">
                    <thead>
                        <tr>
                            <td>Player ID</td>
                            <td>Player Name</td>
                            <td>Player Rating</td>
                        </tr>
                    </thead>
                    @foreach ($players as $player)
                    <tr>
                        <td>{{ $player->player_id }}</td>
                        <td>
                            <a href='{{ action("PlayerController@index", ["playerid" => $player->player_id]) }}'>
                            {{ $player->first_name }} {{ $player->last_name }}   
                        <td>{{ $player->rating}}</td>
                    </tr>
                    @endforeach
                </table>
            </div>
        </div>
    </div>

    
@endsection
