<!-- @extends('layouts.template')

@section('title', ' université')

@section('page-title', ' liste Université')

@section('content')
   <div class="card">
    <div class="card-body">
    <div class="card-header bg-info text-white">
                <h4 class="text-center">Liste des universités</h4>
       </div>
         <a href="{{ route('universites.create') }}" class="btn btn-primary btn-sm mt-3"><i class="fa fa-plus"></i> Créer une université</a>
     @if (session('success'))
         <div class="alert alert-success">
             {{ session('success') }}
         </div>
     @endif
     <div class="table-responsive" style="overflow-x: auto;">
    <table class="table table-striped table-bordered display" id="zero_config">
        <thead>
           <tr>
                <th>ID</th>
                <th>Logo</th>
                <th>Sigle</th>
                <th>Description</th>
            
            </tr>
        </thead>
        <tbody>
            @foreach($universites as $universite)
            <tr>
                    <td>{{ $universite->idUniversite }}</td>
                    <td>
                        @if($universite->nameimguni)
                            <img src="{{ Storage::disk('s3')->url($universite->nameimguni) }}" 
                                alt="Logo de {{ $universite->sigleuni }}" 
                                width="80" class="rounded shadow">
                        @else
                            <span class="text-muted">Aucun logo</span>
                        @endif
                    </td>

                    <td>{{ $universite->sigleuni }}</td>
                    <td>{{ $universite->descruni }}</td>
            
                </tr>
                
            @endforeach
        </tbody>
    </table>
    </div>
</div>
   </div-card>
   
@endsection -->
