orders()->saveMany(Order::findMany($data['orders'])); $invoice->calculateTotals(); return $invoice; } }