feat: implement user management system and integrate AI services with Ollama and Gemini

This commit is contained in:
jeremy bayse
2026-06-21 00:12:37 +02:00
parent 648749a69a
commit b85c2ba5a1
17 changed files with 1074 additions and 7 deletions
+7
View File
@@ -78,6 +78,12 @@ class DevisController extends Controller
public function createFromCommande(\App\Models\Order $commande)
{
$commande->load('attachments');
$quoteAttachments = $commande->attachments->where('file_type', 'quote')->map(fn($a) => [
'id' => $a->id,
'file_name' => $a->file_name,
])->values()->all();
return Inertia::render('Devis/CreateFromCommande', [
'commande' => [
'id' => $commande->id,
@@ -85,6 +91,7 @@ class DevisController extends Controller
'label' => $commande->label,
'supplier' => $commande->supplier,
'quote_number' => $commande->quote_number,
'quote_attachments' => $quoteAttachments,
],
]);
}