home.blade.php 1.22 KB
Newer Older
quentin.vrel's avatar
quentin.vrel committed
1 2 3 4 5 6
@extends('layouts.app')

@section('content')
<div class="container">
    <div class="row justify-content-center">
        <div class="col-md-8">
quentin.vrel's avatar
quentin.vrel committed
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
            
                    @if (isset($tournaments) && !empty($tournaments))
                    <table class="table table-dark">
                        <thead>
                            <tr>
                            <th scope="col">#</th>
                            <th scope="col">Nom</th>
                            <th scope="col">Jeu</th>
                            <th scope="col">Date</th>
                            </tr>
                        </thead>
                        <tbody>
                            @foreach($tournaments as $tournament)
                            <tr>
                            <th scope="row">{{$tournament->id_tournament}}</th>
                            <td>{{$tournament->description}}</td>
                            <td>{{$tournament->titre}}</td>
                            <td>{{$tournament->tournament_date}}</td>
                            </tr>
                            @endforeach
                        </tbody>
                    </table>
quentin.vrel's avatar
quentin.vrel committed
29
                    @endif
quentin.vrel's avatar
quentin.vrel committed
30
            
quentin.vrel's avatar
quentin.vrel committed
31 32 33 34
        </div>
    </div>
</div>
@endsection