
@extends('layouts.config_dashboard.app')

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

                    <div class="card-body">
                        <table class="table" id="myTable">
                            <thead>
                                <tr>
                                    <th>Id</th>
                                    <th>Name</th>
                                    <th>Restaurer</th>
                                </tr>
                            </thead>
                            <tbody>
                                @forelse ($TypeExpertises as $Typeexpertise)
                                    <tr>
                                        <td>{{ $Typeexpertise->id }}</td>
                                        <td>{{ $Typeexpertise->type }}</td>
                                           <td>
                                             <form action="{{ route('TypeExpert.restore', [$Typeexpertise->id]) }}"
                                                method="post">
                                                @csrf
                                                <button class="btn btn-sm btn-warning rounded-pill" type="submit">
                                                    <i class="uil uil-trash fs-5"></i>
                                                    Restaurer
                                                </button>
                                            </form>
                                        </td>
                                    </tr>
                                    @empty
                                    <h3>Tableau Vide</h3>

                                @endforelse
                            </tbody>
                        </table>
                    </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection
