
@extends('layouts.dashboard.app')

@section('content')
    <div class="container-fluid mt-4 ">
        <div class="row">
            <div class="col-12">
                <div class="card">

                    <div class="card-body">

                        <div class="table-responsive">
                            <table class="table table-striped" class="display nowrap"  id="myTable">
                                <thead>
                                    <tr>
                                        <th>Id</th>
                                        <th>Civilite</th>
                                        <th>Name</th>
                                        <th>Email</th>
                                        <th>Seuil</th>
                                        <th>Detail</th>

                                    </tr>
                                </thead>
                                <tbody>
                                    @forelse ($users as $user)
                                        <tr>
                                            <td>{{ $user->id }}</td>
                                            <td>{{ $user->civility ?? null}}</td>
                                            <td>{{ $user->name ?? null}}</td>
                                            <td>{{ $user->email ?? null}}</td>
                                            <td><a class="btn btn-sm btn-info" href="{{ route('Seuil.show',[$user->id]) }}">
                                                +
                                            </a></td>
                                            <td><a class="btn btn-sm btn-secondary" href="{{ route('Seuil.detail',[$user->id]) }}">
                                                                            <i class="uil uil-eye fs-5"></i>
                                            </a></td>

                                        </tr>
                                    @empty
                                        <h3>Tableau Vide</h3>
                                    @endforelse
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection
