ldc-web/resources/views/git-repos/index.blade.php
2022-09-20 10:33:39 +02:00

37 lines
1.5 KiB
PHP

@extends('layouts.app')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-12">
<div class="card">
<div class="card-header">{{ __('Gestion des dépôts Git') }} <a href="{{route('git-repos.create')}}" class="btn btn-sm btn-primary float-end">{{ __('Ajouter') }}</a></div>
<div class="card-body">
@if (session('status'))
<div class="alert alert-success" role="alert">
{{ session('status') }}
</div>
@endif
<table class="table text-center">
<thead class="thead-dark">
<tr>
<th scope="col">{{ __('Nom') }}</th>
<th scope="col"></th>
</tr>
</thead>
<tbody>
@foreach($git_repos as $git_repo)
<tr>
<td>{{$git_repo->name}}</td>
<td><a href="{{route('git-repos.edit', $git_repo)}}" class="btn btn-sm btn-primary">{{ __('Détails') }}</a></td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
@endsection