@extends('app')
@section('content')
    <div
        class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
        <h1 class="h2">Entegrasyonlar</h1>
    </div>

    <div class="row">
        <div class="col-2">

            <a href="{{route('integration-add')}}" class="w-100 btn btn-sm btn-outline-primary">Site Ekle</a>
        </div>

    </div>

    <div class="row mt-5">
        <table class="table table-hover">
            <tbody>
            <th>#</th>
            <th>Proje Adı</th>
            <th>Eklenme Tarihi</th>
            <th></th>
            </tbody>
            @foreach($projectSettings as $project)

                <tr>
                    <td>{{$project->id}}</td>
                    <td>{{$project->project_name}}</td>
                    <td>{{$project->created_at}}</td>
                    <td>
                        <a href="{{route('integration-edit',$project->id)}}" class="btn btn-primary ">Düzenle</a>
                        <a href="{{route('integration-delete',$project->id)}}"  class="btn btn-danger ">Sil</a>
                    </td>
                </tr>
            @endforeach

        </table>
    </div>
@endsection()
