32 lines
1.2 KiB
PHP
32 lines
1.2 KiB
PHP
@extends('layout.app')
|
|
|
|
@section('projects', 'active')
|
|
|
|
@section('content')
|
|
<div class="container content">
|
|
<h2>Gestion des projets<a href="{{ route('create-project') }}" class="float-right btn btn-sm btn-primary">Créer un projet</a></h2>
|
|
<table class="table table-hover">
|
|
<thead>
|
|
<th scope="col" class="w-75">Projet</th>
|
|
<th></th>
|
|
<th></th>
|
|
</thead>
|
|
<tbody>
|
|
@foreach ($projects as $project)
|
|
<tr>
|
|
<td>{{ $project->name }}</td>
|
|
<td><a href="{{ route('edit-project', $project->id) }}" class="btn btn-sm btn-primary">Modifier</a></td>
|
|
<td>
|
|
<form action="{{ route('destroy-project', $project->id) }}" method="POST" class="d-inline">
|
|
@method('DELETE')
|
|
@csrf
|
|
<input type="submit" class="btn btn-sm btn-danger" value="Supprimer"
|
|
onclick="return confirm('Êtes-vous sûr(e) ?')">
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
@endsection
|