@extends('admin.layout')
@section('title','Banque Information')
@section('content')

<div class="col-xl-12">
    <div class="card">
        <div class="card-header">
            <h5>Banque Info</h5>
            <!--a href="{{ route('banque_infos.create') }}" class="btn btn-primary">Ajouter</a-->
        </div>
        <div class="card-block table-border-style">
            <div class="table-responsive">
                <table class="table table-hover">
                    <thead>
                        <tr>
                            <th>#</th>
                            <th>BIC</th>
                            <th>Nom</th>
                            <th>Contact</th>
                            <th>Email</th>
                            <th>Adresse</th>
                            <th>Action</th>
                        </tr>
                    </thead>
                    <tbody>
                        @foreach($banques as $banque)
                        <tr>
                            <td>{{ $loop->iteration }}</td>
                            <td>{{ $banque->bic }}</td>
                            <td>{{ $banque->nom }}</td>
                            <td>{{ $banque->contact }}</td>
                            <td>{{ $banque->email }}</td>
                            <td>{{ $banque->adresse }}</td>
                            <td>
                                <a href="{{ route('banque_infos.edit', $banque->id) }}" class="btn btn-warning"><i class="fas fa-edit"></i> Modifier</a>
                                <form action="{{ route('banque_infos.destroy', $banque->id) }}" method="POST" style="display:inline-block;">
                                    @csrf
                                    @method('DELETE')
                                    <!--button class="btn btn-danger" onclick="return confirm('Confirmer la suppression ?')">Supprimer</button-->
                                </form>
                            </td>
                        </tr>
                        @endforeach
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>

@endsection
