feat: implement user management system and integrate AI services with Ollama and Gemini
This commit is contained in:
@@ -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,
|
||||
],
|
||||
]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user