From fc018313cbb6f21db03322636e8409df4f4a5b26 Mon Sep 17 00:00:00 2001
From: Barbarroux Pierrick <barbarroux.pierrick@outlook.fr>
Date: Thu, 22 Nov 2018 09:24:24 +0100
Subject: [PATCH] Ajouts de liens + profil que quand co

---
 pima/resources/views/formulaire2.blade.php | 4 +++-
 pima/resources/views/profil.blade.php      | 6 +++---
 pima/resources/views/welcome.blade.php     | 2 +-
 pima/routes/web.php                        | 2 +-
 4 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/pima/resources/views/formulaire2.blade.php b/pima/resources/views/formulaire2.blade.php
index 938ece8..6dd6c1a 100644
--- a/pima/resources/views/formulaire2.blade.php
+++ b/pima/resources/views/formulaire2.blade.php
@@ -20,7 +20,8 @@ Accueil
                              document.getElementById('logout-form').submit();">
                 {{ __('Logout') }}
             </a><br>
-            <a href="{{ route('profil') }}">Profil</a>
+            <a href="{{ route('profil') }}">Profil</a><br>
+            <a href="{{ route('welcome') }}">Home</a>
 
             <form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
                 @csrf
@@ -28,6 +29,7 @@ Accueil
             @else
                 <a href="{{ route('login') }}">Login</a> <br>
                 <a href="{{ route('register') }}">Register</a>
+                <a href="{{ route('welcome') }}">Home</a>
             @endauth
         </div>
     @endif
diff --git a/pima/resources/views/profil.blade.php b/pima/resources/views/profil.blade.php
index f57ab4b..f6e97c7 100644
--- a/pima/resources/views/profil.blade.php
+++ b/pima/resources/views/profil.blade.php
@@ -33,9 +33,9 @@ Profil
 
 	<div class="top">
 				<ul>
-					<li><a href="#coordonnees">Coordonnées</a></li>
-					<li><a href="#liste_outils">Liste d'outils</a></li>
-					<li><a href="#edit">Édition</a></li>
+          <li><a href="{{ route('welcome') }}">Home</a></li>
+          <li><a href="{{ url('formulaire2') }}">Main</a></li>
+
 				</ul>
 			</div>
 	<div class="side">
diff --git a/pima/resources/views/welcome.blade.php b/pima/resources/views/welcome.blade.php
index 4546ffa..03964c3 100644
--- a/pima/resources/views/welcome.blade.php
+++ b/pima/resources/views/welcome.blade.php
@@ -70,8 +70,8 @@
                 <div class="top-right links">
                     @auth
                         <a href="{{ url('/home') }}">Home</a>
+                        <a href="{{ url('profil') }}">Profil</a>
                     @else
-						<a href="{{ url('profil') }}">Profil</a>
                         <a href="{{ route('login') }}">Login</a>
                         <a href="{{ route('register') }}">Register</a>
                     @endauth
diff --git a/pima/routes/web.php b/pima/routes/web.php
index 8e9d796..ff5e1bc 100644
--- a/pima/routes/web.php
+++ b/pima/routes/web.php
@@ -13,7 +13,7 @@
 
 Route::get('/', function () {
     return view('welcome');
-});
+})->name('welcome');
 
 Auth::routes();
 
-- 
GitLab