diff --git a/app/Http/Controllers/FrontendController.php b/app/Http/Controllers/FrontendController.php index e26dc33..2b8cca4 100644 --- a/app/Http/Controllers/FrontendController.php +++ b/app/Http/Controllers/FrontendController.php @@ -1,9 +1,10 @@ validate(['nom'=>'required', 'prenom'=>'required','email'=>'required|email|unique:clients','telephone'=>'nullable|regex:/^[0][1-9][0-9]{8}$/']); + Client::create($data); + return view('clients'); + } + + } \ No newline at end of file diff --git a/public/css/style.css b/public/css/style.css index e69de29..ef8aa12 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -0,0 +1,45 @@ +table { + width: 100%; + border-collapse: collapse; + margin-top: 10px; + font-family: Arial, sans-serif; +} + + +th, td { + border: 1px solid #ccc; + padding: 8px 12px; + text-align: left; +} + + +th { + background-color: #f2f2f2; + font-weight: bold; +} + + +tr:nth-child(even) { + background-color: #fafafa; +} + +nav { + display: flex; + gap: 20px; + padding: 15px 25px; + border-bottom: 1px solid #ccc; + align-items: center; + } + + + nav a { + text-decoration: none; + color: inherit; + font-family: Arial, sans-serif; + font-size: 16px; + } + + + nav a:hover { + text-decoration: underline; + } diff --git a/resources/views/accueil.blade.php b/resources/views/accueil.blade.php index 0b9fca4..8cdd829 100644 --- a/resources/views/accueil.blade.php +++ b/resources/views/accueil.blade.php @@ -1,6 +1,7 @@ @extends('layout') @section('content'){{-- contenu injecté dans la vue layout --}} +
Utilisez le menu pour naviguer entre les pages.
@endsection \ No newline at end of file diff --git a/resources/views/clients.blade.php b/resources/views/clients.blade.php index bd28b6a..f50e479 100644 --- a/resources/views/clients.blade.php +++ b/resources/views/clients.blade.php @@ -1,5 +1,6 @@ @extends('layout') @section('content') +| Nom du client | +Adresse e-mail | +Voir le client | +
|---|---|---|
| ${c.nom} | +${c.email} | +le client ${c.id} | +