CRM - tp 1,2, et 3 bientot fini

This commit is contained in:
2026-09-16 11:43:27 +02:00
parent 3937a2556f
commit 5533735d5d
136 changed files with 22137 additions and 0 deletions
@@ -0,0 +1,20 @@
@extends('layouts.app')
@section('content')
<h2> Liste des clients : </h2>
<table>
<tr>
<th>Nom</th>
<th>Email</th>
<th>Ville</th>
</tr>
@foreach($clients as $client)
<tr>
<td>{{ $client['name'] }}</td>
<td>{{ $client['email'] }}</td>
<td>{{ $client['city'] }}</td>
</tr>
@endforeach
</table>
@endsection
@@ -0,0 +1,7 @@
@extends('layouts.app')
@section('content')
<h3> Liste des produtis : </h3>
<p> Email : {{ $email }} </p>
<p> Téléphone : {{ $phone }} </p>
@endsection
+5
View File
@@ -0,0 +1,5 @@
@extends('layouts.app')
@section('content')
<h2>Tableau de bord</h2>
<p>Bienvenue dans votre espace de gestion.</p>
@endsection
+52
View File
@@ -0,0 +1,52 @@
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<title>Mini-CRM</title>
</head>
<body>
@extends('layouts.app')
@section('content')
<h1>Bienvenue dans {{ $company }}</h1>
</h2>Notre première application Laravel.</h2>
<ul>
<li> Les clients</li>
<li> Les produits</li>
<li> Les commandes</li>
<!-- </h2>Notre première application Laravel.</h2> -->
</ul>
</h2>Ma société : </h2>
<ul>
<h3> Liste des produtis : </h3>
@foreach($products as $produit)
<li>{{ $produit }}</li>
@endforeach
<br>
<li>Commandes : {{ $orders }}</li>
<li>Nom : {{ $name }}</li>
<li>Ville : {{ $city }} </li>
<li>Entreprise : {{ $company }}</li>
</ul>
@if($stock < 5 && $stock != 0)
<p>Stock faible</p>
@elseif($stock == 0)
<p> Pas de stock disponible.</p>
@else
<p>Stock disponible</p>
@endif
@if($clients > 0)
<p>Vous avez des clients.</p>
@else
<p>Aucun client.</p>
@endif
</body>
</html>
@@ -0,0 +1,26 @@
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<title>Mini-CRM</title>
</head>
<body>
<header>
<h1>Mini-CRM</h1>
<nav>
<a href="/">Accueil</a>
<a href="/clients">Clients</a>
<a href="/products">Produits</a>
<a href="/contacts">Contacts</a>
</nav>
</header>
<main>
@yield('content')
</main>
<footer>
Mini-CRM
</footer>
</body>
</html>
@@ -0,0 +1,26 @@
@extends('layouts.app')
@section('content')
<h3> Liste des produtis : </h3>
<table>
<tr>
<th>Produit</th>
<th>Prix</th>
<th>Stock</th>
</tr>
@foreach($products as $produit)
<tr>
<td>{{ $produit['name'] }}</td>
<td>{{ $produit['price'] }}</td>
<td>{{ $produit['stock'] }}</td>
<td>@if($produit['stock'] < 5 && $produit['stock'] != 0)
Stock faible
@else
Stock disponible
</td>
@endif
</tr>
@endforeach
</table>
@endsection
File diff suppressed because one or more lines are too long